diff --git a/.circleci/config.yml b/.circleci/config.yml index 91eaff61cd..016871515a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -82,11 +82,17 @@ jobs: source venv/bin/activate python contentctl.py --path . --verbose validate - run: - name: run doc-gen + name: generate documentation command: | cd security-content source venv/bin/activate - python bin/doc-gen.py --path . --output docs -v + python bin/doc_gen.py --path . --output docs -v + # now generate spec docs + sudo apt-get install -y npm -qq + sudo npm install -g @adobe/jsonschema2md + jsonschema2md -d spec -o docs/spec -f yaml -e spec.json -x - + # clean up extra properties on docs + rm -rf docs/spec/*-*.md build-sources: executor: content-executor diff --git a/bin/doc-gen.py b/bin/doc-gen.py deleted file mode 100644 index df97861c27..0000000000 --- a/bin/doc-gen.py +++ /dev/null @@ -1,702 +0,0 @@ -import glob -import yaml -import argparse -from os import path -import sys -import re -from jinja2 import Environment, FileSystemLoader - - -def load_objects(file_path): - files = [] - manifest_files = path.join(path.expanduser(REPO_PATH), file_path) - - for file in sorted(glob.glob(manifest_files)): - files.append(load_file(file)) - - return files - - -def load_file(file_path): - with open(file_path, 'r') as stream: - try: - file = list(yaml.safe_load_all(stream))[0] - except yaml.YAMLError as exc: - print(exc) - sys.exit("ERROR: reading {0}".format(file_path)) - return file - - -def prepare_content(stories, detections): - - # enrich stories with information from detections: data_models, mitre_ids, kill_chain_phases, nists - sto_to_data_models = {} - sto_to_mitre_attack_ids = {} - sto_to_kill_chain_phases = {} - sto_to_ciss = {} - sto_to_nists = {} - sto_to_det = {} - for detection in detections: - if 'analytic_story' in detection['tags']: - for story in detection['tags']['analytic_story']: - if story in sto_to_det.keys(): - sto_to_det[story].add(detection['name']) - else: - sto_to_det[story] = {detection['name']} - - data_model = parse_data_models_from_search(detection['search']) - if data_model: - if story in sto_to_data_models.keys(): - sto_to_data_models[story].add(data_model) - else: - sto_to_data_models[story] = {data_model} - - if 'mitre_attack_id' in detection['tags']: - if story in sto_to_mitre_attack_ids.keys(): - for mitre_attack_id in detection['tags']['mitre_attack_id']: - sto_to_mitre_attack_ids[story].add(mitre_attack_id) - else: - sto_to_mitre_attack_ids[story] = set(detection['tags']['mitre_attack_id']) - - if 'kill_chain_phases' in detection['tags']: - if story in sto_to_kill_chain_phases.keys(): - for kill_chain in detection['tags']['kill_chain_phases']: - sto_to_kill_chain_phases[story].add(kill_chain) - else: - sto_to_kill_chain_phases[story] = set(detection['tags']['kill_chain_phases']) - - if 'cis20' in detection['tags']: - if story in sto_to_ciss.keys(): - for cis in detection['tags']['cis20']: - sto_to_ciss[story].add(cis) - else: - sto_to_ciss[story] = set(detection['tags']['cis20']) - - if 'nist' in detection['tags']: - if story in sto_to_nists.keys(): - for nist in detection['tags']['nist']: - sto_to_nists[story].add(nist) - else: - sto_to_nists[story] = set(detection['tags']['nist']) - - for story in stories: - story['detections'] = sorted(sto_to_det[story['name']]) - if story['name'] in sto_to_data_models: - story['data_models'] = sorted(sto_to_data_models[story['name']]) - if story['name'] in sto_to_mitre_attack_ids: - story['mitre_attack_ids'] = sorted(sto_to_mitre_attack_ids[story['name']]) - if story['name'] in sto_to_kill_chain_phases: - story['kill_chain_phases'] = sorted(sto_to_kill_chain_phases[story['name']]) - if story['name'] in sto_to_ciss: - story['ciss'] = sorted(sto_to_ciss[story['name']]) - if story['name'] in sto_to_nists: - story['nists'] = sorted(sto_to_nists[story['name']]) - - #sort stories into categories - categories = [] - category_names = set() - for story in stories: - if 'category' in story['tags']: - category_names.add(story['tags']['category'][0]) - - for category_name in sorted(category_names): - new_category = {} - new_category['name'] = category_name - new_category['stories'] = [] - categories.append(new_category) - - for story in stories: - for category in categories: - if category['name'] == story['tags']['category'][0]: - category['stories'].append(story) - - return categories - - -def write_splunk_docs(stories, detections, OUTPUT_DIR): - - categories = prepare_content(stories, detections) - - j2_env = Environment(loader=FileSystemLoader('bin/jinja2_templates'), - trim_blocks=True) - template = j2_env.get_template('splunk_docs_categories.j2') - output_path = OUTPUT_DIR + "/splunk_docs_categories.wiki" - output = template.render(categories=categories) - with open(output_path, 'w') as f: - f.write(output) - - return len(stories), output_path - - -def write_markdown_docs(stories, detections, OUTPUT_DIR): - - categories = prepare_content(stories, detections) - - j2_env = Environment(loader=FileSystemLoader('bin/jinja2_templates'), - trim_blocks=True) - template = j2_env.get_template('stories_categories.j2') - output_path = OUTPUT_DIR + "/stories_categories.md" - output = template.render(categories=categories) - with open(output_path, 'w') as f: - f.write(output) - - return len(stories), output_path - - - - - - -# function to get unique values -def unique(list1): - # init a null list - unique_list = [] - # traverse for all elements - for x in list1: - # check if exists in unique_list or not - if x not in unique_list: - unique_list.append(x) - return unique_list - - -def process_data_metadata(obj, complete_obj, name): - - # collect tagging - metadata = obj['data_metadata'] - if 'data_models' in metadata: - complete_obj[name]['data_models'] = metadata['data_models'] - if 'providing_technologies' in metadata: - complete_obj[name]['providing_technologies'] = metadata['providing_technologies'] - if 'data_source' in metadata: - complete_obj[name]['data_source'] = metadata['data_source'] - - if 'mappings' in obj: - complete_obj[name]['mappings'] = obj['mappings'] - if 'fields_required' in obj: - complete_obj[name]['entities'] = obj['fields_required'] - if 'entities' in obj: - complete_obj[name]['entities'] = obj['entities'] - - return complete_obj - - -def process_metadata(detections, story_name): - # grab mappings - mappings = dict() - - # grab provising technologies - providing_technologies = [] - - # grab datamodels - data_models = [] - - # process the above for detections - for detection_name, detection in sorted(detections.items()): - for s in detection['stories']: - - # check if the detection is part of this story - if s == story_name: - # grab providing technologies - if 'providing_technologies' in detection: - for pt in detection['providing_technologies']: - providing_technologies.append(pt) - - # grab data models - if 'data_models' in detection: - for dm in detection['data_models']: - data_models.append(dm) - - for key in detection['mappings'].keys(): - mappings[key] = list(detection['mappings'][key]) - - return mappings, providing_technologies, data_models - - -def generate_detections(REPO_PATH, stories): - # first we process detections - - detections = [] - detections_manifest_files = path.join(path.expanduser(REPO_PATH), "detections/*.yml") - for detections_manifest_file in glob.glob(detections_manifest_files): - - # read in each detection - with open(detections_manifest_file, 'r') as stream: - try: - detection = list(yaml.safe_load_all(stream))[0] - except yaml.YAMLError as exc: - print(exc) - sys.exit("ERROR: reading {0}".format(detections_manifest_file)) - - detections.append(detection) - - complete_detections = dict() - for detection in detections: - # lets process v1 detections - if detection['spec_version'] == 1: - if verbose: - print("processing v1 detection: {0}".format(detection['search_name'])) - name = detection['search_name'] - type = 'splunk' - description = detection['search_description'] - id = detection['search_id'] - - # grab search information - correlation_rule = detection['correlation_rule'] - search = detection['search'] - schedule = detection['scheduling'] - earliest_time = schedule['earliest_time'] - latest_time = schedule['latest_time'] - cron = schedule['cron_schedule'] - - # grabbing entities - entities = [] - - investigations = [] - baselines = [] - responses = [] - for story_name, story in sorted(stories.items()): - for d in story['detections']: - if d['name'] == name: - if 'investigations' in story: - investigations = story['investigations'] - if 'baselines' in story: - baselines = story['baselines'] - - # lets process v2 detections - if detection['spec_version'] == 2: - if verbose: - print("processing v2 detection: {0}".format(detection['name'])) - name = detection['name'] - id = detection['id'] - entities = detection['entities'] - description = detection['description'] - - # splunk - if 'splunk' in detection['detect']: - type = 'splunk' - correlation_rule = detection['detect']['splunk']['correlation_rule'] - search = correlation_rule['search'] - earliest_time = correlation_rule['schedule']['earliest_time'] - latest_time = correlation_rule['schedule']['latest_time'] - cron = correlation_rule['schedule']['cron_schedule'] - - # uba - if 'uba' in detection['detect']: - uba = detection['detect']['uba'] - type = 'uba' - search = uba['search'] = 'CONSTRUCT DETECTION SEARCH HERE' - # earliest_time = uba['earliest_time'] - # latest_time = uba['latest_time'] - # cron = uba['cron_schedule'] - - # phantom - if 'phantom' in detection['detect']: - phantom = detection['detect']['phantom'] - type = 'phantom' - search = phantom['search'] = 'CONSTRUCT DETECTION SEARCH HERE' - # earliest_time = phantom['earliest_time'] - # latest_time = phantom['latest_time'] - # cron = phantom['cron_schedule'] - - baselines = [] - investigations = [] - responses = [] - if 'baselines' in detection: - for b in detection['baselines']: - baselines.append({"type": b['type'], "name": b['name']}) - if 'investigations' in detection: - for i in detection['investigations']: - investigations.append({"type": i['type'], "name": i['name']}) - if 'responses' in detection: - for r in detection['responses']: - responses.append({"type": r['type'], "name": r['name']}) - - complete_detections[name] = {} - complete_detections[name]['detection_name'] = name - complete_detections[name]['id'] = id - complete_detections[name]['search'] = search - complete_detections[name]['latest_time'] = latest_time - complete_detections[name]['earliest_time'] = earliest_time - complete_detections[name]['cron'] = cron - complete_detections[name]['investigations'] = investigations - complete_detections[name]['baselines'] = baselines - complete_detections[name]['responses'] = responses - complete_detections[name]['entities'] = entities - complete_detections[name]['description'] = description - complete_detections[name]['correlation_rule'] = correlation_rule - complete_detections[name]['type'] = type - complete_detections[name]['maintainers'] = detection['maintainers'] - if 'references' not in detection: - detection['references'] = [] - complete_detections[name]['references'] = detection['references'] - if 'channel' not in detection: - detection['channel'] = "" - complete_detections[name]['channel'] = detection['channel'] - if 'confidence' not in detection: - detection['confidence'] = "" - complete_detections[name]['confidence'] = detection['confidence'] - if 'eli5' not in detection: - detection['eli5'] = "" - complete_detections[name]['eli5'] = detection['eli5'] - if 'how_to_implement' not in detection: - detection['how_to_implement'] = "" - complete_detections[name]['how_to_implement'] = detection['how_to_implement'] - if 'asset_type' not in detection: - detection['asset_type'] = "" - complete_detections[name]['asset_type'] = detection['asset_type'] - if 'known_false_positives' not in detection: - detection['known_false_positives'] = "" - complete_detections[name]['known_false_positives'] = detection['known_false_positives'] - complete_detections[name]['security_domain'] = detection['security_domain'] - complete_detections[name]['version'] = detection['version'] - complete_detections[name]['spec_version'] = detection['spec_version'] - complete_detections[name]['creation_date'] = detection['creation_date'] - # set modification date to creation of there is not one - if 'modification_date' in detection: - complete_detections[name]['modification_date'] = detection['modification_date'] - else: - complete_detections[name]['modification_date'] = detection['creation_date'] - - # process its metadata - complete_detections = process_data_metadata(detection, complete_detections, name) - - # stories associated with the detection - complete_detections[name]['stories'] = [] - for story_name, story in sorted(stories.items()): - for d in story['detections']: - if d['name'] == name: - complete_detections[name]['stories'].append(story['story_name']) - - # sort uniq the results - complete_detections[name]['stories'] = sorted(set(complete_detections[name]['stories'])) - - return complete_detections - - -def generate_stories(REPO_PATH, verbose): - story_files = [] - story_manifest_files = path.join(path.expanduser(REPO_PATH), "stories/*.yml") - - for story_manifest_file in glob.glob(story_manifest_files): - - # read in each story - with open(story_manifest_file, 'r') as stream: - try: - story = list(yaml.safe_load_all(stream))[0] - except yaml.YAMLError as exc: - print(exc) - sys.exit("ERROR: reading {0}".format(story_manifest_file)) - - story_files.append(story) - - # store an object with all stories and their data - - complete_stories = dict() - for story in story_files: - if verbose: - print("processing story: {0}".format(story['name'])) - # Start building the story for the use case - name = story['name'] - complete_stories[name] = {} - complete_stories[name]['story_name'] = name - complete_stories[name]['id'] = story['id'] - - # grab modification date if it has one, otherwise write as creation date - complete_stories[name]['creation_date'] = story['creation_date'] - if 'modification_date' in story: - complete_stories[name]['modification_date'] = story['modification_date'] - - else: - complete_stories[name]['modification_date'] = story['creation_date'] - complete_stories[name]['description'] = story['description'] - if 'references' not in story: - story['references'] = [] - complete_stories[name]['references'] = story['references'] - complete_stories[name]['version'] = story['version'] - complete_stories[name]['narrative'] = story['narrative'] - complete_stories[name]['spec_version'] = story['spec_version'] - complete_stories[name]['maintainers'] = story['maintainers'] - - # grab searches - if story['spec_version'] == 1: - detections = [] - baselines = [] - investigations = [] - category = [] - - category.append(story['category']) - - if 'detection_searches' in story['searches']: - for d in story['searches']['detection_searches']: - detections.append({"type": "splunk", "name": d}) - complete_stories[name]['detections'] = detections - - # in spec v1 these are part of the story which is why we are grabbing them here - if 'support_searches' in story['searches']: - for b in story['searches']['support_searches']: - baselines.append({"type": "splunk", "name": b}) - complete_stories[name]['baselines'] = baselines - - if 'contextual_searches' in story['searches']: - for i in story['searches']['contextual_searches']: - investigations.append({"type": "splunk", "name": i}) - if 'investigative_searches' in story['searches']: - for i in story['searches']['investigative_searches']: - investigations.append({"type": "splunk", "name": i}) - complete_stories[name]['investigations'] = investigations - - if story['spec_version'] == 2: - detections = [] - if 'detections' in story: - for d in story['detections']: - detections.append({"type": d['type'], "name": d['name']}) - complete_stories[name]['detections'] = detections - category = story['category'] - complete_stories[name]['category'] = category - return complete_stories - - -def write_splunk_docs_bak(stories, detections, OUTPUT_DIR): - - paths = [] - # Create conf files from analytics stories files - splunk_docs_output_path = OUTPUT_DIR + "/splunk_docs_categories.wiki" - paths.append(splunk_docs_output_path) - output_file = open(splunk_docs_output_path, 'w') - output_file.write("= Use Case Categories=\n") - output_file.write("The collapse...\n") - - # calculate categories - categories = [] - for story_name, story in sorted(stories.items()): - c = story['category'] - categories.append(c) - - # get a unique set of them - categories = unique(categories) - for c in categories: - output_file.write("\n\n=={0}==\n".format(c[0])) - - # iterate through every story and print it out - for story_name, story in sorted(stories.items()): - # if the category matches - if story['category'] == c: - output_file.write("\n==={0}===\n".format(story_name)) - output_file.write("\n{0}\n".format(story['description'])) - output_file.write( - """\n
\n
\n""") - # header information - output_file.write("\n====Narrative====\n{0}\n".format(story['narrative'])) - - mappings, providing_technologies, data_models = process_metadata(detections, story_name) - - # providing tech - output_file.write("\n====Providing Technologies====\n") - providing_technologies = unique(providing_technologies) - for pt in providing_technologies: - output_file.write("* {0}\n".format(pt)) - - # providing tech - output_file.write("\n====Data Models====\n") - data_models = unique(data_models) - for dm in data_models: - output_file.write("* {0}\n".format(dm)) - - # mappings - output_file.write("\n====Mappings====\n") - - output_file.write("\n=====ATT&CK=====\n") - if mappings['mitre_attack']: - for m in mappings['mitre_attack']: - output_file.write("* {0}\n".format(m)) - - output_file.write("\n=====Kill Chain Phases=====\n") - if mappings['kill_chain_phases']: - for m in mappings['kill_chain_phases']: - output_file.write("* {0}\n".format(m)) - - if mappings['cis20']: - output_file.write("\n=====CIS=====\n") - for m in mappings['cis20']: - output_file.write("* {0}\n".format(m)) - - if mappings['nist']: - output_file.write("\n=====NIST=====\n") - for m in mappings['nist']: - output_file.write("* {0}\n".format(m)) - - # references - output_file.write("\n====References====\n") - for r in story['references']: - output_file.write("* {0}\n".format(r)) - - # story details - output_file.write("\ncreation_date = {0}\n\n".format(story['creation_date'])) - output_file.write("modification_date = {0}\n\n".format(story['modification_date'])) - output_file.write("version = {0}\n".format(story['version'])) - - # footer information - output_file.write("""\n
\n
\n""") - output_file.write("""\n[[Category:V:Lab:drafts]]""") - - output_file.close() - story_count = len(stories.keys()) - return story_count, paths - - -def write_markdown_docs_bak(stories, detections, OUTPUT_DIR): - paths = [] - # Create conf files from analytics stories files - splunk_docs_output_path = OUTPUT_DIR + "/stories_categories.md" - paths.append(splunk_docs_output_path) - output_file = open(splunk_docs_output_path, 'w') - output_file.write("# Categories\n") - output_file.write("Analytics stories organized by categories\n") - - # calculate categories - categories = [] - for story_name, story in sorted(stories.items()): - c = story['category'] - categories.append(c) - - # get a unique set of them - categories = unique(categories) - - # build category TOC - for c in categories: - output_file.write("\n* [{0}](#{1})\n".format(c[0], c[0].replace(' ', '-').lower())) - - for c in categories: - output_file.write("\n\n## {0}\n".format(c[0])) - - # build story TOC - for story_name, story in sorted(stories.items()): - # if the category matches - if story['category'] == c: - output_file.write("\n* [{0}](#{1})\n".format(story_name, story_name.replace(' ', '-').lower())) - - # iterate through every story and print it out - for story_name, story in sorted(stories.items()): - # if the category matches - if story['category'] == c: - output_file.write("\n### {0}\n".format(story_name)) - # basic story info - output_file.write("* id = `{0}`\n".format(story['id'])) - output_file.write("* creation_date = {0}\n".format(story['creation_date'])) - output_file.write("* modification_date = {0}\n".format(story['modification_date'])) - output_file.write("* version = {0}\n".format(story['version'])) - output_file.write("* spec_version = {0}\n".format(story['spec_version'])) - - # description and narrative - output_file.write("\n##### Description\n{0}\n".format(story['description'])) - output_file.write("\n##### Narrative\n{0}\n".format(story['narrative'])) - - # process detections - output_file.write("\n##### Detections\n") - # write all detections - if 'detections' in story: - for d in story['detections']: - output_file.write("* {0}\n".format(d['name'])) - - mappings, providing_technologies, data_models = process_metadata(detections, story_name) - - # providing tech - output_file.write("\n##### Providing Technologies\n") - providing_technologies = unique(providing_technologies) - for pt in providing_technologies: - output_file.write("* {0}\n".format(pt)) - - # data models - output_file.write("\n##### Data Models\n") - data_models = unique(data_models) - for dm in data_models: - output_file.write("{0}\n".format(dm)) - - # mappings - output_file.write("\n##### Mappings\n") - - output_file.write("\n###### ATT&CK\n") - if mappings['mitre_attack']: - for m in mappings['mitre_attack']: - output_file.write("* {0}\n".format(m)) - - output_file.write("\n###### Kill Chain Phases\n") - if mappings['kill_chain_phases']: - for m in mappings['kill_chain_phases']: - output_file.write("* {0}\n".format(m)) - - if mappings['cis20']: - output_file.write("\n###### CIS\n") - for m in mappings['cis20']: - output_file.write("* {0}\n".format(m)) - - if mappings['nist']: - output_file.write("\n###### NIST\n") - for m in mappings['nist']: - output_file.write("* {0}\n".format(m)) - - # maintainers - output_file.write("\n##### Maintainers\n") - for m in story['maintainers']: - output_file.write("* name = {0}\n".format(m['name'])) - output_file.write("* email = {0}\n".format(m['email'])) - output_file.write("* company = {0}\n".format(m['company'])) - - # references - output_file.write("\n##### References\n") - for r in story['references']: - output_file.write("* {0}\n".format(r)) - - output_file.close() - story_count = len(stories.keys()) - return story_count, paths - - -def parse_data_models_from_search(search): - match = re.search('from\sdatamodel\s?=\s?([^\s.]*)',search) - if match is not None: - return match.group(1) - return False - -if __name__ == "__main__": - - # grab arguments - parser = argparse.ArgumentParser(description="generates documentation from our content", epilog=""" - This tool converts manifests information to documents in variious format like markdown and wiki markup used by Splunk docs.""") - parser.add_argument("-p", "--path", required=True, help="path to security_content repo") - parser.add_argument("-o", "--output", required=True, help="path to the output directory for the docs") - parser.add_argument("-v", "--verbose", required=False, default=False, action='store_true', help="prints verbose output") - parser.add_argument("-gsd", "--gen_splunk_docs", required=False, default=True, action='store_true', - help="generates wiki markup splunk documentation, default to true") - parser.add_argument("-gmd", "--gen_markdown_docs", required=False, default=True, action='store_true', - help="generates markdown docs, default to true") - - # parse them - args = parser.parse_args() - REPO_PATH = args.path - OUTPUT_DIR = args.output - verbose = args.verbose - gsd = args.gen_splunk_docs - gmd = args.gen_markdown_docs - - stories = load_objects("stories/*.yml") - detections = [] - detections = load_objects("detections/*/*.yml") - detections.extend(load_objects("detections/*/*/*.yml")) - - # complete_stories = generate_stories(REPO_PATH, verbose) - # complete_detections = generate_detections(REPO_PATH, complete_stories) - - if gsd: - story_count, path = write_splunk_docs(stories, detections, OUTPUT_DIR) - print("{0} story documents have been successfully written to {1}".format(story_count, path)) - else: - print("--gen_splunk_docs was set to false, not generating splunk documentation") - - if gmd: - story_count, path = write_markdown_docs(stories, detections, OUTPUT_DIR) - print("{0} story documents have been successfully written to {1}".format(story_count, path)) - else: - print("--gen_splunk_docs was set to false, not generating splunk documentation") - - print("documentation generation for security content completed..") diff --git a/bin/doc_gen.py b/bin/doc_gen.py new file mode 100644 index 0000000000..e19570eba1 --- /dev/null +++ b/bin/doc_gen.py @@ -0,0 +1,268 @@ +import glob +import yaml +import argparse +import sys +import re +from os import path, walk +import json +from jinja2 import Environment, FileSystemLoader +from pyattck import Attck + + +def mitre_attack_object(technique, attack): + mitre_attack = dict() + mitre_attack['technique_id'] = technique.id + mitre_attack['technique'] = technique.name + + # process tactics + tactics = [] + for tactic in technique.tactics: + tactics.append(tactic.name) + mitre_attack['tactic'] = tactics + + return mitre_attack + +def get_mitre_enrichment_new(attack, mitre_attack_id): + for technique in attack.enterprise.techniques: + apt_groups = [] + if '.' in mitre_attack_id: + for subtechnique in technique.subtechniques: + if mitre_attack_id == subtechnique.id: + mitre_attack = mitre_attack_object(subtechnique, attack) + return mitre_attack + + elif mitre_attack_id == technique.id: + mitre_attack = mitre_attack_object(technique, attack) + return mitre_attack + return [] + +def generate_doc_stories(REPO_PATH, OUTPUT_DIR, TEMPLATE_PATH, attack, sorted_detections, messages, VERBOSE): + manifest_files = [] + for root, dirs, files in walk(REPO_PATH + '/stories'): + for file in files: + if file.endswith(".yml"): + manifest_files.append((path.join(root, file))) + + stories = [] + for manifest_file in manifest_files: + story_yaml = dict() + if VERBOSE: + print("processing manifest {0}".format(manifest_file)) + + with open(manifest_file, 'r') as stream: + try: + object = list(yaml.safe_load_all(stream))[0] + except yaml.YAMLError as exc: + print(exc) + print("Error reading {0}".format(manifest_file)) + sys.exit(1) + story_yaml = object + + # enrich the mitre object + mitre_attacks = [] + if 'mitre_attack_id' in story_yaml['tags']: + for mitre_technique_id in story_yaml['tags']['mitre_attack_id']: + mitre_attack = get_mitre_enrichment_new(attack, mitre_technique_id) + mitre_attacks.append(mitre_attack) + # story_yaml['mitre_attacks'] = sorted(mitre_attacks, key = lambda i: i['tactic']) + story_yaml['mitre_attacks'] = mitre_attacks + stories.append(story_yaml) + + sorted_stories = sorted(stories, key=lambda i: i['name']) + + # enrich stories with information from detections: data_models, mitre_ids, kill_chain_phases + sto_to_data_models = {} + sto_to_mitre_attack_ids = {} + sto_to_mitre_attacks = {} + sto_to_kill_chain_phases = {} + sto_to_det = {} + for detection in sorted_detections: + if 'analytic_story' in detection['tags']: + for story in detection['tags']['analytic_story']: + if story in sto_to_det.keys(): + sto_to_det[story].add(detection['name']) + else: + sto_to_det[story] = {detection['name']} + data_model = detection['datamodel'] + if data_model: + for d in data_model: + if story in sto_to_data_models.keys(): + sto_to_data_models[story].add(d) + else: + sto_to_data_models[story] = {d} + + if 'mitre_attack_id' in detection['tags']: + if story in sto_to_mitre_attack_ids.keys(): + for mitre_attack_id in detection['tags']['mitre_attack_id']: + sto_to_mitre_attack_ids[story].add(mitre_attack_id) + else: + sto_to_mitre_attack_ids[story] = set(detection['tags']['mitre_attack_id']) + + if 'kill_chain_phases' in detection['tags']: + if story in sto_to_kill_chain_phases.keys(): + for kill_chain in detection['tags']['kill_chain_phases']: + sto_to_kill_chain_phases[story].add(kill_chain) + else: + sto_to_kill_chain_phases[story] = set(detection['tags']['kill_chain_phases']) + + if 'mitre_attacks' in detection: + if story in sto_to_mitre_attacks.keys(): + for mitre_attack in detection['mitre_attacks']: + if mitre_attack not in sto_to_mitre_attacks[story]: + sto_to_mitre_attacks[story].append(mitre_attack) + else: + sto_to_mitre_attacks[story] = detection['mitre_attacks'] + + # add the enrich objects to the story + for story in sorted_stories: + story['detections'] = sorted(sto_to_det[story['name']]) + if story['name'] in sto_to_data_models: + story['data_models'] = sorted(sto_to_data_models[story['name']]) + if story['name'] in sto_to_mitre_attack_ids: + story['mitre_attack_ids'] = sorted(sto_to_mitre_attack_ids[story['name']]) + if story['name'] in sto_to_mitre_attacks: + story['mitre_attacks'] = sto_to_mitre_attacks[story['name']] + if story['name'] in sto_to_kill_chain_phases: + story['kill_chain_phases'] = sorted(sto_to_kill_chain_phases[story['name']]) + + # sort stories into categories + categories = [] + category_names = set() + for story in sorted_stories: + if 'category' in story['tags']: + category_names.add(story['tags']['category'][0]) + + for category_name in sorted(category_names): + new_category = {} + new_category['name'] = category_name + new_category['stories'] = [] + categories.append(new_category) + + for story in sorted_stories: + for category in categories: + if category['name'] == story['tags']['category'][0]: + category['stories'].append(story) + + j2_env = Environment(loader=FileSystemLoader(TEMPLATE_PATH), + trim_blocks=False) + # write markdown + template = j2_env.get_template('doc_stories_markdown.j2') + output_path = path.join(OUTPUT_DIR + '/stories.md') + output = template.render(categories=categories) + with open(output_path, 'w', encoding="utf-8") as f: + f.write(output) + messages.append("doc_gen.py wrote {0} stories documentation in markdown to: {1}".format(len(stories),output_path)) + + # write wikimarkup + template = j2_env.get_template('doc_stories_wiki.j2') + output_path = path.join(OUTPUT_DIR + '/stories.wiki') + output = template.render(categories=categories) + with open(output_path, 'w', encoding="utf-8") as f: + f.write(output) + messages.append("doc_gen.py wrote {0} stories documentation in mediawiki to: {1}".format(len(stories),output_path)) + return sorted_stories, messages + + +def generate_doc_detections(REPO_PATH, OUTPUT_DIR, TEMPLATE_PATH, attack, messages, VERBOSE): + types = ["endpoint", "application", "cloud", "network", "web", "experimental", "deprecated"] + manifest_files = [] + for t in types: + for root, dirs, files in walk(REPO_PATH + '/detections/' + t): + for file in files: + if file.endswith(".yml"): + manifest_files.append((path.join(root, file))) + + detections = [] + for manifest_file in manifest_files: + detection_yaml = dict() + if VERBOSE: + print("processing manifest {0}".format(manifest_file)) + + with open(manifest_file, 'r') as stream: + try: + object = list(yaml.safe_load_all(stream))[0] + except yaml.YAMLError as exc: + print(exc) + print("Error reading {0}".format(manifest_file)) + sys.exit(1) + detection_yaml = object + + # enrich the mitre object + mitre_attacks = [] + if 'mitre_attack_id' in detection_yaml['tags']: + for mitre_technique_id in detection_yaml['tags']['mitre_attack_id']: + mitre_attack = get_mitre_enrichment_new(attack, mitre_technique_id) + mitre_attacks.append(mitre_attack) + detection_yaml['mitre_attacks'] = mitre_attacks + #detection_yaml['mitre_attacks'] = sorted(mitre_attacks, key = lambda i: i['tactic']) + detection_yaml['kind'] = manifest_file.split('/')[-2] + detections.append(detection_yaml) + + sorted_detections = sorted(detections, key=lambda i: i['name']) + + j2_env = Environment(loader=FileSystemLoader(TEMPLATE_PATH), + trim_blocks=False) + + # write markdown + template = j2_env.get_template('doc_detections_markdown.j2') + output_path = path.join(OUTPUT_DIR + '/detections.md') + output = template.render(detections=sorted_detections) + with open(output_path, 'w', encoding="utf-8") as f: + f.write(output) + messages.append("doc_gen.py wrote {0} detections documentation in markdown to: {1}".format(len(detections),output_path)) + + #sort detections by kind into categories + kinds = [] + kind_names = set() + for detection in sorted_detections: + kind_names.add(detection['kind']) + + for kind_name in sorted(kind_names): + new_kind = {} + new_kind['name'] = kind_name + new_kind['detections'] = [] + kinds.append(new_kind) + + for detection in sorted_detections: + for kind in kinds: + if kind['name'] == detection['kind']: + kind['detections'].append(detection) + + # write wikimarkup + template = j2_env.get_template('doc_detections_wiki.j2') + output_path = path.join(OUTPUT_DIR + '/detections.wiki') + output = template.render(kinds=kinds) + with open(output_path, 'w', encoding="utf-8") as f: + f.write(output) + messages.append("doc_gen.py wrote {0} detections documentation in mediawiki to: {1}".format(len(detections),output_path)) + + return sorted_detections, messages +if __name__ == "__main__": + + # grab arguments + parser = argparse.ArgumentParser(description="Generates documentation from Splunk Security Content", epilog=""" + This tool converts all Splunk Security Content detections, stories, workbooks and spec files into documentation. It builds both wiki markup (Splunk Docs) an markdown documentation.""") + parser.add_argument("-p", "--path", required=True, help="path to security_content repo") + parser.add_argument("-o", "--output", required=True, help="path to the output directory for the docs") + parser.add_argument("-v", "--verbose", required=False, default=False, action='store_true', help="prints verbose output") + + # parse them + args = parser.parse_args() + REPO_PATH = args.path + OUTPUT_DIR = args.output + VERBOSE = args.verbose + + TEMPLATE_PATH = path.join(REPO_PATH, 'bin/jinja2_templates') + + if VERBOSE: + print("getting mitre enrichment data from cti") + attack = Attck() + + messages = [] + sorted_detections, messages = generate_doc_detections(REPO_PATH, OUTPUT_DIR, TEMPLATE_PATH, attack, messages, VERBOSE) + sorted_stories, messages = generate_doc_stories(REPO_PATH, OUTPUT_DIR, TEMPLATE_PATH, attack, sorted_detections, messages, VERBOSE) + + # print all the messages from generation + for m in messages: + print(m) + print("finished successfully!") diff --git a/bin/jinja2_templates/doc_detections_markdown.j2 b/bin/jinja2_templates/doc_detections_markdown.j2 new file mode 100644 index 0000000000..88db5af004 --- /dev/null +++ b/bin/jinja2_templates/doc_detections_markdown.j2 @@ -0,0 +1,124 @@ +# Splunk Security Content Detections +![security_content](static/logo.png) +===== +All the detections shipped to different Splunk products. Below is a breakdown by kind. + +## Cloud +
+ details + +{% for detection in detections %} +{% if detection.kind == 'cloud' %} +- [{{ detection.name }}](#{{ detection.name|lower|replace(" ", "-") }}) +{% endif %} +{% endfor %} +
+ +## Endpoint +
+ details + +{% for detection in detections %} +{% if detection.kind == 'endpoint' %} +- [{{ detection.name }}](#{{ detection.name|lower|replace(" ", "-") }}) +{% endif %} +{% endfor %} +
+ +## Network +
+ details + +{% for detection in detections %} +{% if detection.kind == 'network' %} +- [{{ detection.name }}](#{{ detection.name|lower|replace(" ", "-") }}) +{% endif %} +{% endfor %} +
+ +## Application +
+ details + +{% for detection in detections %} +{% if detection.kind == 'application' %} +- [{{ detection.name }}](#{{ detection.name|lower|replace(" ", "-") }}) +{% endif %} +{% endfor %} +
+ +## Web +
+ details + +{% for detection in detections %} +{% if detection.kind == 'web' %} +- [{{ detection.name }}](#{{ detection.name|lower|replace(" ", "-") }}) +{% endif %} +{% endfor %} +
+ + + +{% for detection in detections %} +### {{ detection.name }} +{{ detection.description }} + +- **Product**: {{ detection.tags.product|join(', ') }} +- **Datamodel**: {{ detection.datamodel|join(', ') }} +- **ATT&CK**: {% for mitre_attack_id in detection.tags.mitre_attack_id %}[{{ mitre_attack_id }}](https://attack.mitre.org/techniques/{{ mitre_attack_id }}/){% if not loop.last %}, {% endif %}{% endfor %} +- **Last Updated**: {{ detection.date }} + +
+ details + +#### Search +``` +{{ detection.search|replace("|", "\n|") }} +``` +#### Associated Analytic Story +{% for story in detection.tags.analytic_story %} +* {{ story }} +{% endfor %} + +#### How To Implement +{{ detection.how_to_implement}} + +#### Required field +{% for field in detection.tags.required_fields %} +* {{ field }} +{% endfor %} + +{% if detection.mitre_attacks %} +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +{%- for attack in detection.mitre_attacks %} +| {{ attack.technique_id }} | {{ attack.technique }} | {{ attack.tactic|join(', ') }} | +{%- endfor %} +{% endif %} + +#### Kill Chain Phase +{% for phase in detection.tags.kill_chain_phases %} +* {{ phase }} +{% endfor %} + +#### Known False Positives +{{ detection.known_false_positives}} + +#### Reference +{% for reference in detection.references %} +* {{ reference }} +{% endfor %} + +#### Test Dataset +{% for dataset in detection.tags.dataset %} +* {{ dataset }} +{% endfor %} + +_version_: {{detection.version}} +
+ +--- +{% endfor %} diff --git a/bin/jinja2_templates/doc_detections_wiki.j2 b/bin/jinja2_templates/doc_detections_wiki.j2 new file mode 100644 index 0000000000..7b5ece8ad2 --- /dev/null +++ b/bin/jinja2_templates/doc_detections_wiki.j2 @@ -0,0 +1,85 @@ +=Splunk Security Content Detections = + +---- +All the detections shipped to different Splunk products. Below is a breakdown by kind. +{% for kind in kinds %} +=={{ kind.name|capitalize }}== + +{% for detection in kind.detections %} +==={{ detection.name|capitalize}}=== +{{ detection.description }} + +* '''Product''': {{ detection.tags.product|join(', ') }} +* '''Datamodel''': {{ detection.datamodel|join(', ') }} +* '''ATT&CK''': {% for attack in detection.mitre_attacks %}[https://attack.mitre.org/techniques/{{ attack.technique_id }}/ {{ attack.technique_id }}]{% if not loop.last %}, {% endif %}{% endfor %} +* '''Last Updated''': {{ detection.date }} + +
+
+ +====Search==== +{{ detection.search|replace("|", "\n|") }} + +====Associated Analytic Story==== +{% for story in detection.tags.analytic_story %} +* [[Documentation:ESSOC:stories:UseCase#{{ story|replace(" ", "_") }}|{{ story }}]] +{% endfor %} + +====How To Implement==== +{{ detection.how_to_implement}} + +====Required field==== +{% for field in detection.tags.required_fields %} +* {{ field }} +{% endfor %} + +{% if detection.mitre_attacks|length > 0 %} +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +{%-for attack in detection.mitre_attacks %} +|- +| {{ attack.technique_id }} +| {{ attack.technique }} +| {{ attack.tactic|join(', ') }} +{%- endfor %} +|} +{% endif %} + +====Kill Chain Phase==== +{% for phase in detection.tags.kill_chain_phases %} +* {{ phase }} +{% endfor %} + +====Known False Positives==== +{{ detection.known_false_positives}} + +====Reference==== +{% for reference in detection.references %} +* {{ reference }} +{% endfor %} + +====Test Dataset==== +{% for dataset in detection.tags.dataset %} +* {{ dataset }} +{% endfor %} + +''version'': {{detection.version}} +
+
+ +---- +{% endfor %} + +{% endfor %} + +''#############'' +''# Automatically generated by doc_gen.py in https://github.com/splunk/security_content'' +''# On Date: {{ time }} UTC'' +''# Author: Splunk Security Research'' +''# Contact: research@splunk.com'' +''#############'' + +[[Category:V:ESSOC:drafts]] diff --git a/bin/jinja2_templates/doc_stories_markdown.j2 b/bin/jinja2_templates/doc_stories_markdown.j2 new file mode 100644 index 0000000000..4d17395558 --- /dev/null +++ b/bin/jinja2_templates/doc_stories_markdown.j2 @@ -0,0 +1,51 @@ +# Splunk Security Content Analytic Stories +![security_content](static/logo.png) +===== +All the Analytic Stories shipped to different Splunk products. Below is a breakdown by kind. + +{% for category in categories %} +## {{ category.name }} +
+ details +{% for story in category.stories %} +### {{ story.name }} +{{ story.description }} + +- **Product**: {{ story.tags.product|join(', ') }} +- **Datamodel**: {{ story.data_models|join(', ') }} +- **ATT&CK**: {% for mitre_attack_id in story.mitre_attack_ids %}[{{ mitre_attack_id }}](https://attack.mitre.org/techniques/{{ mitre_attack_id }}/){% if not loop.last %}, {% endif %}{% endfor %} +- **Last Updated**: {{ story.date }} + +
+ details + +#### Detection Profile +{% for detection in story.detections %} +* [{{ detection }}](detections.md#{{ detection|lower|replace(" ", "-") }}) +{% endfor %} + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +{%- for attack in story.mitre_attacks %} +| {{ attack.technique_id }} | {{ attack.technique }} | {{ attack.tactic|join(', ') }} | +{%- endfor %} + +#### Kill Chain Phase +{% for phase in story.kill_chain_phases %} +* {{ phase }} +{% endfor %} + +#### Reference +{% for reference in story.references %} +* {{ reference }} +{% endfor %} + +_version_: {{story.version}} +
+ +--- +{% endfor %} +
+{% endfor %} diff --git a/bin/jinja2_templates/doc_stories_wiki.j2 b/bin/jinja2_templates/doc_stories_wiki.j2 new file mode 100644 index 0000000000..67024eb080 --- /dev/null +++ b/bin/jinja2_templates/doc_stories_wiki.j2 @@ -0,0 +1,66 @@ +=Splunk Security Content Analytic Story = + +---- +All the Analytic Stories shipped to different Splunk products. Below is a breakdown by Category. +{% for category in categories %} +=={{ category.name }}== + +{% for story in category.stories %} +==={{ story.name|capitalize }}=== +{{ story.description }} + +* '''Product''': {{ story.tags.product|join(', ') }} +* '''Datamodel''': {{ story.data_models|join(', ') }} +* '''ATT&CK''': {% for attack in story.mitre_attacks %}[https://attack.mitre.org/techniques/{{ attack.technique_id }}/ {{ attack.technique_id }}]{% if not loop.last %}, {% endif %}{% endfor %} +* '''Last Updated''': {{ story.date }} + +
+
+ +====Detection Profile==== +{% for detection in story.detections %} +* [[Documentation:ESSOC:detections:Detections#{{ detection|replace(" ", "_")|capitalize }}|{{ detection }}]] +{% endfor %} + +{% if story.mitre_attacks|length > 0 %} +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +{%-for attack in story.mitre_attacks %} +|- +| {{ attack.technique_id }} +| {{ attack.technique }} +| {{ attack.tactic|join(', ') }} +{%- endfor %} +|} +{% endif %} + +====Kill Chain Phase==== +{% for phase in story.kill_chain_phases %} +* {{ phase }} +{% endfor %} + +====Reference==== +{% for reference in story.references %} +* {{ reference }} +{% endfor %} + +''version'': {{story.version}} +
+
+ +---- +{% endfor %} + +{% endfor %} + +''#############'' +''# Automatically generated by doc_gen.py in https://github.com/splunk/security_content'' +''# On Date: {{ time }} UTC'' +''# Author: Splunk Security Research'' +''# Contact: research@splunk.com'' +''#############'' + +[[Category:V:ESSOC:drafts]] diff --git a/bin/jinja2_templates/splunk_docs_categories.j2 b/bin/jinja2_templates/splunk_docs_categories.j2 deleted file mode 100644 index b0582430a8..0000000000 --- a/bin/jinja2_templates/splunk_docs_categories.j2 +++ /dev/null @@ -1,65 +0,0 @@ -= Use Case Categories= -The collapse... - - -{% for category in categories %} -=={{ category.name }}== - -{% for story in category.stories %} -==={{ story.name }}=== - -{{ story.description }} - -
-
- -====Narrative==== -{{ story.narrative }} - -====Detections==== -{% for detection in story.detections %} -* {{ detection }} -{% endfor %} - -====Data Models==== -{% for data_model in story.data_models %} -* {{ data_model }} -{% endfor %} - -====Tags==== - -=====ATT&CK===== -{% for mitre_attack_id in story.mitre_attack_ids %} -* {{ mitre_attack_id }} -{% endfor %} - -=====Kill Chain Phases===== -{% for kill_chain_phase in story.kill_chain_phases %} -* {{ kill_chain_phase }} -{% endfor %} - -=====CIS===== -{% for cis in story.ciss %} -* {{ cis }} -{% endfor %} - -=====NIST===== -{% for nist in story.nists %} -* {{ nist }} -{% endfor %} - -====References==== -{% for reference in story.references %} -* {{ reference }} -{% endfor %} - -date = {{ story.date }} - -version = {{ story.version }} - -
-
- -{% endfor %} - -{% endfor %} diff --git a/bin/jinja2_templates/stories_categories.j2 b/bin/jinja2_templates/stories_categories.j2 deleted file mode 100644 index 7862cd9ed5..0000000000 --- a/bin/jinja2_templates/stories_categories.j2 +++ /dev/null @@ -1,68 +0,0 @@ - -# Categories -Analytics stories organized by categories -{% for category in categories %} - -* [{{ category.name }}](#{{ category.name | replace(' ','-') }}) -{% endfor %} - - -{% for category in categories %} -## {{ category.name }} -{% for story in category.stories %} - -* [{{ story.name }}](#{{ story.name | replace(' ','-') }}) -{% endfor %} - -{% for story in category.stories %} -### {{ story.name }} -* id = {{ story.id }} -* date = {{ story.date }} -* version = {{ story.version }} - -#### Description -{{ story.description }} - -#### Narrative -{{ story.narrative }} - -#### Detections -{% for detection in story.detections %} -* {{ detection }} -{% endfor %} - -#### Data Models -{% for data_model in story.data_models %} -* {{ data_model }} -{% endfor %} - -#### Mappings - -##### ATT&CK -{% for mitre_attack_id in story.mitre_attack_ids %} -* {{ mitre_attack_id }} -{% endfor %} - -##### Kill Chain Phases -{% for kill_chain_phase in story.kill_chain_phases %} -* {{ kill_chain_phase }} -{% endfor %} - -###### CIS -{% for cis in story.ciss %} -* {{ cis }} -{% endfor %} - -##### NIST -{% for nist in story.nists %} -* {{ nist }} -{% endfor %} - -##### References -{% for reference in story.references %} -* {{ reference }} -{% endfor %} - -{% endfor %} - -{% endfor %} diff --git a/bin/ssa-end-to-end-testing/modules/github_service.py b/bin/ssa-end-to-end-testing/modules/github_service.py index de159e476c..09e13de335 100644 --- a/bin/ssa-end-to-end-testing/modules/github_service.py +++ b/bin/ssa-end-to-end-testing/modules/github_service.py @@ -2,8 +2,6 @@ import git import os import logging -from os import path -import sys # Logger @@ -25,7 +23,6 @@ class GithubService: repo_obj = git.Repo.clone_from(url, project, branch=branch) return repo_obj - def get_changed_test_files_ssa(self): branch1 = self.security_content_branch branch2 = 'develop' @@ -35,8 +32,6 @@ class GithubService: changed_ssa_test_files = [] - #tests = self.read_security_content_test_files() - for file_path in changed_files: # added or changed test files if file_path.startswith('tests'): @@ -47,7 +42,10 @@ class GithubService: # changed detections if file_path.startswith('detections'): if os.path.basename(file_path).startswith('ssa'): - file_path_new = os.path.splitext(file_path)[0].replace('detections', 'tests') + '.test.yml' + file_path_base = os.path.splitext(file_path)[0].replace('detections', 'tests') + '.test' + file_path_new = file_path_base + '.yml' + if not os.path.exists(file_path_new): + file_path_new = file_path_base + '.yaml' if file_path_new not in changed_ssa_test_files: changed_ssa_test_files.append(file_path_new) diff --git a/bin/ssa-end-to-end-testing/modules/spl/detection.spl b/bin/ssa-end-to-end-testing/modules/spl/detection.spl index c4cf977814..1e2c938227 100644 --- a/bin/ssa-end-to-end-testing/modules/spl/detection.spl +++ b/bin/ssa-end-to-end-testing/modules/spl/detection.spl @@ -17,4 +17,5 @@ | eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), -body = "TBD"; \ No newline at end of file +body = "TBD" +| into write_ssa_detected_events(); \ No newline at end of file diff --git a/bin/ssa-end-to-end-testing/modules/spl/detection2.spl b/bin/ssa-end-to-end-testing/modules/spl/detection2.spl index d035fc7f36..73cabaaafc 100644 --- a/bin/ssa-end-to-end-testing/modules/spl/detection2.spl +++ b/bin/ssa-end-to-end-testing/modules/spl/detection2.spl @@ -17,4 +17,5 @@ | eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), -body = "TBD"; +body = "TBD" +| into write_ssa_detected_events(); diff --git a/bin/ssa-end-to-end-testing/modules/spl/firehose.spl b/bin/ssa-end-to-end-testing/modules/spl/firehose.spl index be0790a827..c8bdf3a602 100644 --- a/bin/ssa-end-to-end-testing/modules/spl/firehose.spl +++ b/bin/ssa-end-to-end-testing/modules/spl/firehose.spl @@ -1 +1 @@ -| from read_splunk_firehose(); \ No newline at end of file + | from read_splunk_firehose(); \ No newline at end of file diff --git a/bin/ssa-end-to-end-testing/modules/spl/troubleshoot.spl b/bin/ssa-end-to-end-testing/modules/spl/troubleshoot.spl index c093070090..d374be63ef 100644 --- a/bin/ssa-end-to-end-testing/modules/spl/troubleshoot.spl +++ b/bin/ssa-end-to-end-testing/modules/spl/troubleshoot.spl @@ -1 +1 @@ -| from read_ssa_enriched_events(); \ No newline at end of file +| from read_ssa_enriched_events() | into write_ssa_detected_events(); \ No newline at end of file diff --git a/bin/ssa-end-to-end-testing/modules/test_ssa_detections.py b/bin/ssa-end-to-end-testing/modules/test_ssa_detections.py index 126045831a..d9c323c189 100644 --- a/bin/ssa-end-to-end-testing/modules/test_ssa_detections.py +++ b/bin/ssa-end-to-end-testing/modules/test_ssa_detections.py @@ -1,4 +1,3 @@ - import logging import os import time @@ -6,8 +5,7 @@ import sys from http import HTTPStatus from modules.streams_service_api_helper import DSPApi -from modules.utils import manipulate_spl, read_spl, read_data - +from modules.utils import check_source_sink, manipulate_spl, read_spl, read_data # Logger logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO")) @@ -22,6 +20,7 @@ MAX_EXECUTION_TIME_LIMIT = 600 # per detection test TEST_DATASET = 'windows-security_small.txt' + class SSADetectionTesting: def __init__(self, env, tenant, header_token): @@ -45,7 +44,7 @@ class SSADetectionTesting: ] test_results = [] - for i in range(0,len(test_spls)): + for i in range(0, len(test_spls)): self.max_execution_time = MAX_EXECUTION_TIME_LIMIT test_result = self.ssa_detection_test(read_spl(file_path_spl, test_spls[i]), file_path_data, test_names[i]) test_results.append(test_result.copy()) @@ -62,17 +61,16 @@ class SSADetectionTesting: return passed - def test_ssa_detections(self, test_obj): LOGGER.info('Test SSA Detection: ' + test_obj["detection_obj"]["name"]) self.max_execution_time = MAX_EXECUTION_TIME_LIMIT file_path_attack_data = os.path.join(os.path.dirname(__file__), "../", test_obj["attack_data_file_path"]) - test_results = self.ssa_detection_test(test_obj["detection_obj"]["search"], file_path_attack_data, "SSA Smoke Test " + test_obj["test_obj"]["name"]) + test_results = self.ssa_detection_test(test_obj["detection_obj"]["search"], file_path_attack_data, + "SSA Smoke Test " + test_obj["test_obj"]["name"]) return test_results - ## Helper Functions ## def update_execution_time(self, time_frame): @@ -86,58 +84,45 @@ class SSADetectionTesting: time.sleep(time_in_s) return self.update_execution_time(time_in_s) - def check_result(self, condition, error_message): - try: - assert condition - except: - self.execution_passed = False - LOGGER.error(error_message) - - def write_test_results(self, test_name): - if not self.execution_passed: - msg = f"Detection test failed for {test_name}" - LOGGER.error(msg) - self.test_results["msg"] = msg - self.test_results["result"] = False - else: - msg = f"Detection test successful for {test_name}" - LOGGER.info(msg) - self.test_results["msg"] = msg - - def ssa_detection_test_init(self): self.test_results["result"] = True self.test_results["msg"] = "" self.results_index = self.api.create_temp_index("mc") - + self.created_pipelines = [] + self.activated_pipelines = [] def ssa_detection_test_main(self, spl, source, test_name): self.execution_passed = True self.wait_time(SLEEP_TIME_CREATE_INDEX) + check_ssa_spl = check_source_sink(spl) spl = manipulate_spl(self.api.env, spl, self.results_index) - self.check_result(spl is not None, "fail to manipulate spl file") + assert spl is not None, "fail to manipulate spl file" pipeline_id = self.api.create_pipeline_from_spl(spl) - self.check_result(pipeline_id is not None, "failed to create a pipeline") + assert pipeline_id is not None, "failed to create a pipeline" _pipeline_status = self.api.pipeline_status(pipeline_id) - self.check_result(_pipeline_status=="CREATED", f"Current status of pipeline {pipeline_id} should be CREATED") + assert _pipeline_status == "CREATED", f"Current status of pipeline {pipeline_id} should be CREATED" + self.created_pipelines.append(pipeline_id) response_body = self.api.activate_pipeline(pipeline_id) - self.check_result(response_body.get("activated")==pipeline_id, f"pipeline {pipeline_id} should be successfully activate.") + assert response_body.get("activated") == pipeline_id, f"pipeline {pipeline_id} should be successfully activate." + self.activated_pipelines.append(pipeline_id) self.wait_time(SLEEP_TIME_ACTIVATE_PIPELINE) + if not check_ssa_spl: + msg = f"Detection test successful for {test_name}" + LOGGER.warning(f"Test not completed. Detection seems deprecated, and will not send messages to SSA") + self.test_results["msg"] = msg + return self.test_results + data = read_data(source) LOGGER.info("Sending (%d) events" % (len(data))) - if len(data) == 0: - LOGGER.warning("No events to send, skip to next test.") - self.execution_passed = False - self.write_test_results(test_name) - return self.test_results + assert len(data) > 0, "No events to send, skip to next test." for d in data: response_body = self.api.ingest_data(d) @@ -151,8 +136,8 @@ class SSADetectionTesting: max_execution_time_reached = self.wait_time(WAIT_CYCLE) query = f"from indexes('{self.results_index['name']}') | search source!=\"Search Catalog\" " sid = self.api.submit_search_job(self.results_index['module'], query) - self.check_result(sid is not None, f"Failed to create a Search Job") - + assert sid is not None, f"Failed to create a Search Job" + job_finished = False while not job_finished: self.wait_time(WAIT_CYCLE) @@ -162,33 +147,53 @@ class SSADetectionTesting: results = self.api.get_search_job_results(sid) search_results = (len(results) > 0) if not search_results: - LOGGER.info(f"Search didn't return any results. Retrying in {WAIT_CYCLE}s, max execution time left {self.max_execution_time}s") - - self.check_result(len(results) > 0, "Search job didn't return any results") + LOGGER.info( + f"Search didn't return any results. Retrying in {WAIT_CYCLE}s, max execution time left {self.max_execution_time}s") - response, response_body = self.api.deactivate_pipeline(pipeline_id) - self.check_result(response.status_code == HTTPStatus.OK, f"The pipeline {pipeline_id} fails to deactivated.") + assert len(results) > 0, "Search job didn't return any results" - response = self.api.delete_pipeline(pipeline_id) - self.check_result(response.status_code == HTTPStatus.NO_CONTENT, f"Fail to delete pipeline {pipeline_id}.") - - self.write_test_results(test_name) + msg = f"Detection test successful for {test_name}" + LOGGER.info(msg) + self.test_results["msg"] = msg return self.test_results - def ssa_detection_test_teardown(self): - pass - self.api.delete_temp_index(self.results_index["id"]) - + """ + Deactivate and deletes pipelines, deletes results indexes, + and when it fails it shows pipelines and result indexes that were not removed. + :return: + None + """ + deactivate_pipeline = lambda p: self.api.deactivate_pipeline(p)[0].status_code == HTTPStatus.OK + delete_pipeline = lambda p: self.api.delete_pipeline(p).status_code == HTTPStatus.NO_CONTENT + delete_index = lambda p: self.api.delete_temp_index(p["id"]) == HTTPStatus.NO_CONTENT + self.activated_pipelines = [p for p in self.activated_pipelines if not deactivate_pipeline(p)] + self.created_pipelines = [p for p in self.created_pipelines if not delete_pipeline(p)] + if len(self.activated_pipelines) > 0 or len(self.created_pipelines) > 0 or not delete_index(self.results_index): + LOGGER.warning("Not all SCS resources fred up") + LOGGER.info(f"Created Pipelines: {','.join(self.created_pipelines)}") + LOGGER.info(f"Active Pipelines: {','.join(self.activated_pipelines)}") + LOGGER.info(f"Result Indexes: {self.results_index}") + else: + LOGGER.info("Testing successfully cleaned up") def ssa_detection_test(self, spl, source, test_name): self.ssa_detection_test_init() - test_result = self.ssa_detection_test_main(spl, source, test_name) - self.ssa_detection_test_teardown() - return test_result - - + try: + test_result = self.ssa_detection_test_main(spl, source, test_name) + self.ssa_detection_test_teardown() + return test_result + except AssertionError as e: + self.ssa_detection_test_teardown() + LOGGER.error(e.args[0]) + return {"result": False, + "msg": f"Detection test failure for {test_name}"} + except Exception as e: + self.ssa_detection_test_teardown() + LOGGER.error(e) + return {"result": False, + "msg": f"Detection test failure for {test_name} (perhaps SCS problems)"} # only for troubleshooting # def ssa_detection_in_dsp_with_preview_session(self, spl, source, test_name): @@ -213,4 +218,4 @@ class SSADetectionTesting: # response = self.api.stop_preview_session(preview_id) - # self.write_test_results(test_name) \ No newline at end of file + # self.write_test_results(test_name) diff --git a/bin/ssa-end-to-end-testing/modules/utils.py b/bin/ssa-end-to-end-testing/modules/utils.py index b6c5cc7ede..13424416f6 100644 --- a/bin/ssa-end-to-end-testing/modules/utils.py +++ b/bin/ssa-end-to-end-testing/modules/utils.py @@ -75,14 +75,26 @@ def request_headers(header_token): return headers +def check_source_sink(spl): + match_source = re.match(r"^\s*\|\s+from\s+read_ssa_enriched_events\(\s*\)", spl) + match_sink = re.search(r"\|\s*into\s+write_ssa_detected_events\(\s*\)\s*;", spl) + return match_source and match_sink + + def manipulate_spl(env, spl, results_index): - spl = replace_ssa_macros(env, spl) + # Obtain the SSA source + pulsar_source_connection_id, pulsar_source_topic = return_macros(env) + source = READ_SSA_ENRICHED_EVENTS_EXPANDED\ + .replace("__PULSAR_SOURCE_CONNECTION_ID__", pulsar_source_connection_id)\ + .replace("__PULSAR_SOURCE_TOPIC__", pulsar_source_topic) + # Obtain the test sink + sink = ";" if results_index is not None: - # When an index is defined for a test, it writes the output of this pipeline to this index. - # original_pipeline; => original_pipeline | into index("module", "index"); module = results_index["module"] index = results_index["name"] - spl = spl[:spl.rindex(";")] + f" | into index(\"{module}\", \"{index}\");" + sink = f"| into index(\"{module}\", \"{index}\");" + # Replace spl template with its `source` and `sink` + spl = replace_ssa_macros(source, sink, spl) LOGGER.info(f"spl: {spl}") return spl @@ -93,13 +105,9 @@ def read_spl(file_path, file_name): return spl -def replace_ssa_macros(env, spl): - pulsar_source_connection_id, pulsar_source_topic = return_macros(env) - macro_expanded = READ_SSA_ENRICHED_EVENTS_EXPANDED.replace("__PULSAR_SOURCE_CONNECTION_ID__", pulsar_source_connection_id) - macro_expanded = macro_expanded.replace("__PULSAR_SOURCE_TOPIC__", pulsar_source_topic) - spl = spl.replace(READ_SSA_ENRICHED_EVENTS, macro_expanded) - spl = spl.replace(WRITE_SSA_DETECTED_EVENTS, ";") - #spl = spl.replace("\n", " ") +def replace_ssa_macros(source, sink, spl): + spl = spl.replace(READ_SSA_ENRICHED_EVENTS, source) + spl = spl.replace(WRITE_SSA_DETECTED_EVENTS, sink) return spl diff --git a/bin/ssa-end-to-end-testing/run_ssa_smoketest.py b/bin/ssa-end-to-end-testing/run_ssa_smoketest.py index aeb006f38b..6e69820fba 100644 --- a/bin/ssa-end-to-end-testing/run_ssa_smoketest.py +++ b/bin/ssa-end-to-end-testing/run_ssa_smoketest.py @@ -38,7 +38,7 @@ def main(args): for test_file in test_files_ssa: LOGGER.info(test_file) - if len(test_files_ssa)==0: + if len(test_files_ssa) == 0: LOGGER.info('Nothing to test for SSA smoke test.') sys.exit(0) diff --git a/detections/endpoint/clop_common_exec_parameter.yml b/detections/endpoint/clop_common_exec_parameter.yml new file mode 100644 index 0000000000..c8312f7c3e --- /dev/null +++ b/detections/endpoint/clop_common_exec_parameter.yml @@ -0,0 +1,55 @@ +name: Clop Common Exec Parameter +id: 5a8a2a72-8322-11eb-9ee9-acde48001122 +version: 1 +date: '2021-03-17' +author: Teoderick Contreras, Splunk +type: batch +datamodel: +- Endpoint +description: The following analytics are designed to identifies some CLOP ransomware + variant that using arguments to execute its main code or feature of its code. In + this variant if the parameter is "runrun", CLOP ransomware will try to encrypt files + in network shares and if it is "temp.dat", it will try to read from some stream + pipe or file start encrypting files within the infected local machines. This technique + can be also identified as an anti-sandbox technique to make its code non-responsive + since it is waiting for some parameter to execute properly. +search: '| tstats `security_content_summariesonly` values(Processes.process) as cmdline + values(Processes.parent_process_name) as parent_process values(Processes.process_name) + count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes + where Processes.process = "*runrun*" OR Processes.process = "*temp.dat*" by Processes.parent_process_name + Processes.process_name Processes.process Processes.dest Processes.user Processes.process_id Processes.process_guid + | `drop_dm_object_name(Processes)` + | `security_content_ctime(firstTime)` + | `security_content_ctime(lastTime)` + | `clop_common_exec_parameter_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the process name, parent process, and command-line executions from your + endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the + Sysmon TA. +known_false_positives: Operators can execute third party tools using these parameters. +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + automated_detection_testing: passed + kill_chain_phases: + - Obfuscation + mitre_attack_id: + - T1204 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - Processes.process + - Processes.parent_process_name + - _time + - Processes.process_name + - Processes.dest + - Processes.user + - Processes.process_id + security_domain: endpoint + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_b/windows-sysmon.log diff --git a/detections/endpoint/clop_ransomware_known_service_name.yml b/detections/endpoint/clop_ransomware_known_service_name.yml new file mode 100644 index 0000000000..dcd20febdc --- /dev/null +++ b/detections/endpoint/clop_ransomware_known_service_name.yml @@ -0,0 +1,46 @@ +name: Clop Ransomware Known Service Name +id: 07e08a12-870c-11eb-b5f9-acde48001122 +version: 1 +date: '2021-03-17' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: This detection is to identify the common service name created by the + CLOP ransomware as part of its persistence and high privilege code execution in + the infected machine. Ussually CLOP ransomware use StartServiceCtrlDispatcherW API + in creating this service entry. +search: '`wineventlog_system` EventCode=7045 Service_Name IN ("SecurityCenterIBM", + "WinCheckDRVs") | stats count min(_time) as firstTime max(_time) as lastTime by + EventCode Service_File_Name Service_Name Service_Start_Type Service_Type | `security_content_ctime(firstTime)` + | `security_content_ctime(lastTime)` | `clop_ransomware_known_service_name_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the Service name, Service File Name Service Start type, and Service Type + from your endpoints. +known_false_positives: unknown +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Privilege Escalation + mitre_attack_id: + - T1543 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - cmdline + - _time + - parent_process_name + - process_name + - OriginalFileName + - process_path + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-system.log diff --git a/detections/endpoint/common_ransomware_extensions.yml b/detections/endpoint/common_ransomware_extensions.yml index c538968c1b..2e0b65de31 100644 --- a/detections/endpoint/common_ransomware_extensions.yml +++ b/detections/endpoint/common_ransomware_extensions.yml @@ -40,6 +40,7 @@ tags: - SamSam Ransomware - Ryuk Ransomware - Ransomware + - Clop Ransomware asset_type: Endpoint automated_detection_testing: passed cis20: diff --git a/detections/endpoint/common_ransomware_notes.yml b/detections/endpoint/common_ransomware_notes.yml index 1f553a2cff..f0fd2e002a 100644 --- a/detections/endpoint/common_ransomware_notes.yml +++ b/detections/endpoint/common_ransomware_notes.yml @@ -26,6 +26,7 @@ tags: - SamSam Ransomware - Ransomware - Ryuk Ransomware + - Clop Ransomware asset_type: Endpoint automated_detection_testing: passed cis20: diff --git a/detections/endpoint/create_service_in_suspicious_file_path.yml b/detections/endpoint/create_service_in_suspicious_file_path.yml new file mode 100644 index 0000000000..6787d6592d --- /dev/null +++ b/detections/endpoint/create_service_in_suspicious_file_path.yml @@ -0,0 +1,44 @@ +name: Create Service In Suspicious File Path +id: 429141be-8311-11eb-adb6-acde48001122 +version: 1 +date: '2021-03-12' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: This detection is to identify a creation of "user mode service" where + the service file path is located in non-common service folder in windows. +search: ' `wineventlog_system` EventCode=7045 Service_File_Name = "*\.exe" NOT (Service_File_Name + IN ("C:\\Windows\\*", "C:\\Program File*", "C:\\Programdata\\*", "%systemroot%\\*")) + Service_Type = "user mode service" | stats count min(_time) as firstTime max(_time) + as lastTime by EventCode Service_File_Name Service_Name Service_Start_Type Service_Type + | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `create_service_in_suspicious_file_path_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the Service name, Service File Name Service Start type, and Service Type + from your endpoints. +known_false_positives: unknown +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Privilege Escalation + mitre_attack_id: + - T1569.001, T1569.002 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - Service_File_Name + - Service_Type + - _time + - Service_Name + - Service_Start_Type + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-system.log diff --git a/detections/endpoint/deleting_shadow_copies.yml b/detections/endpoint/deleting_shadow_copies.yml index 3edefd7369..4209216b6d 100644 --- a/detections/endpoint/deleting_shadow_copies.yml +++ b/detections/endpoint/deleting_shadow_copies.yml @@ -29,6 +29,7 @@ tags: - Windows Log Manipulation - SamSam Ransomware - Ransomware + - Clop Ransomware asset_type: Endpoint automated_detection_testing: passed cis20: diff --git a/detections/endpoint/high_file_deletion_frequency.yml b/detections/endpoint/high_file_deletion_frequency.yml new file mode 100644 index 0000000000..556735275f --- /dev/null +++ b/detections/endpoint/high_file_deletion_frequency.yml @@ -0,0 +1,48 @@ +name: High File Deletion Frequency +id: 45b125c4-866f-11eb-a95a-acde48001122 +version: 1 +date: '2021-03-16' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: This search looks for high frequency of file deletion relative to process + name and process id. These events usually happen when the ransomware tries to encrypt + the files with the ransomware file extensions and sysmon treat the original files + to be deleted as soon it was replace as encrypted data. +search: '`sysmon` EventCode=23 TargetFilename IN ("*\.cmd", "*\.ini","*\.gif", "*\.jpg", + "*\.jpeg", "*\.db", "*\.ps1", "*\.doc*", "*\.xls*", "*\.ppt*", "*\.bmp","*\.zip", + "*\.rar", "*\.7z", "*\.chm", "*\.png", "*\.log", "*\.vbs", "*\.js") | stats values(TargetFilename) + as deleted_files min(_time) as firstTime max(_time) as lastTime count by Computer + user EventCode Image ProcessID |where count >=100 | `security_content_ctime(firstTime)` + | `security_content_ctime(lastTime)` | `high_file_deletion_frequency_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the deleted target file name, process name and process id from your endpoints. + If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. +known_false_positives: user may delete bunch of pictures or files in a folder. +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1485 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - TargetFilename + - Computer + - user + - Image + - ProcessID + - _time + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-sysmon.log diff --git a/detections/endpoint/high_process_termination_frequency.yml b/detections/endpoint/high_process_termination_frequency.yml new file mode 100644 index 0000000000..b142ddc128 --- /dev/null +++ b/detections/endpoint/high_process_termination_frequency.yml @@ -0,0 +1,44 @@ +name: High Process Termination Frequency +id: 17cd75b2-8666-11eb-9ab4-acde48001122 +version: 1 +date: '2021-03-16' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: This analytics are designed to indentify a high frequency of process + termination on a machine which is a common behavior of ransomware malware before + encrypting files. This technique is designed to avoid an exception error while accessing + (docs, images, database and etc..) in the infected machine for encryption. +search: '`sysmon` EventCode=5 |bin _time span=3s |stats values(Image) as proc_terminated + min(_time) as firstTime max(_time) as lastTime count by Computer EventCode ProcessID + | where count >= 15 | `security_content_ctime(firstTime)`| `security_content_ctime(lastTime)` + | `high_process_termination_frequency_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the Image (process full path of terminated process) from your endpoints. + If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. +known_false_positives: admin or user tool that can terminate multiple process. +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1486 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - Image + - Computer + - _time + - ProcessID + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-sysmon.log diff --git a/detections/endpoint/process_deleting_its_process_file_path.yml b/detections/endpoint/process_deleting_its_process_file_path.yml new file mode 100644 index 0000000000..82643ed65a --- /dev/null +++ b/detections/endpoint/process_deleting_its_process_file_path.yml @@ -0,0 +1,53 @@ +name: Process Deleting Its Process File Path +id: f7eda4bc-871c-11eb-b110-acde48001122 +version: 1 +date: '2021-03-17' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: This detection is to identify a suspicious process that tries to delete + the process file path related to its process. This technique is known to be defense + evasion once a certain condition of malware is satisfied or not. Clop ransomware + use this technique where it will try to delete its process file path using a .bat + command if the keyboard layout is not the layout it tries to infect. +search: '`sysmon` EventCode=1 cmdline = "*/c del*" Image = "*\\cmd.exe" |eval result + = if(like(process,"%".parent_process."%"), "Found", "Not Found") | stats min(_time) + as firstTime max(_time) as lastTime count by Computer user ParentImage ParentCommandLine + Image cmdline EventCode ProcessID result | where result = "Found" | `security_content_ctime(firstTime)` + | `security_content_ctime(lastTime)` | `process_deleting_its_process_file_path_filter`' +how_to_implement: You must be ingesting data that records process activity from your + hosts to populate the Endpoint data model in the Processes node. You must also be + ingesting logs with both the process name and command line from your endpoints. + The command-line arguments are mapped to the "process" field in the Endpoint data + model. +known_false_positives: unknown +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1003.002 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - Computer + - user + - ParentImage + - ParentCommandLine + - Image + - cmdline + - ProcessID + - result + - _time + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-sysmon.log diff --git a/detections/endpoint/ransomware_notes_bulk_creation.yml b/detections/endpoint/ransomware_notes_bulk_creation.yml new file mode 100644 index 0000000000..f426f36ccc --- /dev/null +++ b/detections/endpoint/ransomware_notes_bulk_creation.yml @@ -0,0 +1,48 @@ +name: Ransomware Notes bulk creation +id: eff7919a-8330-11eb-83f8-acde48001122 +version: 1 +date: '2021-03-12' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: The following analytics identifies a big number of instance of ransomware + notes (filetype e.g .txt, .html, .hta) file creation to the infected machine. This + behavior is a good sensor if the ransomware note filename is quite new for security + industry or the ransomware note filename is not in your lookup table list for monitoring. +search: '`sysmon` EventCode=11 file_name IN ("*\.txt","*\.html","*\.hta") | stats + min(_time) as firstTime max(_time) as lastTime dc(TargetFilename) as unique_readme_path_count + values(TargetFilename) as list_of_readme_path by Computer Image file_name | where + unique_readme_path_count >= 50 | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` + | `ransomware_notes_bulk_creation_filter`' +how_to_implement: You must be ingesting data that records the filesystem activity + from your hosts to populate the Endpoint file-system data model node. If you are + using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which + you want to collect data. +known_false_positives: unknown +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Obfuscation + mitre_attack_id: + - T1486 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - EventCode + - file_name + - _time + - TargetFilename + - Computer + - Image + - user + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-sysmon.log diff --git a/detections/endpoint/resize_shadowstorage_volume.yml b/detections/endpoint/resize_shadowstorage_volume.yml new file mode 100644 index 0000000000..a69ec49c5a --- /dev/null +++ b/detections/endpoint/resize_shadowstorage_volume.yml @@ -0,0 +1,58 @@ +name: Resize ShadowStorage volume +id: bc760ca6-8336-11eb-bcbb-acde48001122 +version: 1 +date: '2021-03-12' +author: Teoderick Contreras +type: batch +datamodel: +- Endpoint +description: The following analytics identifies the resizing of shadowstorage by ransomware + malware to avoid the shadow volumes being made again. this technique is an alternative + by ransomware attacker than deleting the shadowstorage which is known alert in defensive + team. one example of ransomware that use this technique is CLOP ransomware where + it drops a .bat file that will resize the shadowstorage to minimum size as much + as possible +search: '| tstats `security_content_summariesonly` values(Processes.process) as cmdline + values(Processes.parent_process_name) as parent_process values(Processes.process_name) + as process_name min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes + where Processes.parent_process_name = "cmd.exe" OR Processes.parent_process_name + = "powershell.exe" OR Processes.parent_process_name = "powershell_ise.exe" OR Processes.parent_process_name + = "wmic.exe" Processes.process_name = "vssadmin.exe" Processes.process="*resize*" + Processes.process="*shadowstorage*" Processes.process="*/maxsize*" by Processes.parent_process_name + Processes.parent_process Processes.process_name Processes.process Processes.dest + Processes.user Processes.process_id Processes.process_guid + | `drop_dm_object_name(Processes)` + | `security_content_ctime(firstTime)` + |`security_content_ctime(lastTime)` + | `resize_shadowstorage_volume_filter`' +how_to_implement: To successfully implement this search, you need to be ingesting + logs with the process name, parent process, and command-line executions from your + endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the + Sysmon TA. +known_false_positives: network admin can resize the shadowstorage for valid purposes. +references: +- https://www.fireeye.com/blog/threat-research/2020/10/fin11-email-campaigns-precursor-for-ransomware-data-theft.html +- https://blog.virustotal.com/2020/11/keep-your-friends-close-keep-ransomware.html +tags: + analytic_story: + - Clop Ransomware + kill_chain_phases: + - Exploitation + mitre_attack_id: + - T1490 + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + required_fields: + - Processes.process + - Process.parent_process_name + - _time + - Processes.process_name + - Processes.parent_process + - Processes.dest + - Processes.user + security_domain: endpoint + automated_detection_testing: passed + dataset: + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-sysmon.log diff --git a/detections/endpoint/ssa___rare_parent_process_relationship_lolbas.yml b/detections/endpoint/ssa___rare_parent_process_relationship_lolbas.yml index 016e7518ad..2168b8e1ef 100644 --- a/detections/endpoint/ssa___rare_parent_process_relationship_lolbas.yml +++ b/detections/endpoint/ssa___rare_parent_process_relationship_lolbas.yml @@ -47,7 +47,7 @@ search: '| from read_ssa_enriched_events() | eval timestamp=parse_long(ucast(map OR process_name="pcalua.exe" OR process_name="cmdkey.exe" OR process_name="msconfig.exe") | eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, - dest_user_id), body = "TBD" | into write_ssa_detected_events();' + dest_user_id), body = "TBD" | into write_null();' how_to_implement: Collect endpoint data such as sysmon or 4688 events. known_false_positives: 'Some custom tools used by admins could be used rarely to launch remotely applications. This might trigger false positives at the beginning when diff --git a/detections/endpoint/suspicious_microsoft_workflow_compiler_rename.yml b/detections/endpoint/suspicious_microsoft_workflow_compiler_rename.yml index 7d73514a9f..fa9a5cbbfd 100644 --- a/detections/endpoint/suspicious_microsoft_workflow_compiler_rename.yml +++ b/detections/endpoint/suspicious_microsoft_workflow_compiler_rename.yml @@ -38,7 +38,8 @@ tags: kill_chain_phases: - Exploitation mitre_attack_id: - - T1127, T1036.003 + - T1127 + - T1036.003 nist: - PR.PT - DE.CM diff --git a/detections/endpoint/suspicious_wevtutil_usage.yml b/detections/endpoint/suspicious_wevtutil_usage.yml index 3b0d69d03f..a47ef0d432 100644 --- a/detections/endpoint/suspicious_wevtutil_usage.yml +++ b/detections/endpoint/suspicious_wevtutil_usage.yml @@ -28,6 +28,7 @@ tags: analytic_story: - Windows Log Manipulation - Ransomware + - Clop Ransomware asset_type: '' automated_detection_testing: passed cis20: diff --git a/detections/endpoint/windows_event_log_cleared.yml b/detections/endpoint/windows_event_log_cleared.yml index 6ff621fcbd..8066d443e0 100644 --- a/detections/endpoint/windows_event_log_cleared.yml +++ b/detections/endpoint/windows_event_log_cleared.yml @@ -20,6 +20,7 @@ tags: analytic_story: - Windows Log Manipulation - Ransomware + - Clop Ransomware asset_type: Endpoint automated_detection_testing: passed cis20: diff --git a/docs/README.md b/docs/README.md index 7dbecc3e89..d9ebb8dba3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,12 +1,14 @@ -# Splunk Security Content -![](static/logo.png) +# Splunk Security Content +![](static/logo.png) Welcome to the Splunk Security Content This project gives you access to our repository of Analytic Stories that are security guides which provide background on TTPs, mapped to the MITRE framework, the Lockheed Martin Kill Chain, and CIS controls. They include Splunk searches, machine-learning algorithms, and Splunk Phantom playbooks (where available)—all designed to work together to detect, investigate, and respond to threats. ## View Our Content -You can review our Analytic Stories by category [here](stories_categories.md), or in our [Splunk App](https://github.com/splunk/security_content/releases). + +* [Analytic Stories](docs/stories.md) +* [Detections](docs/detections.md) If you prefer working with the command line, check out our [API](https://docs.splunkresearch.com/?version=latest): @@ -17,15 +19,11 @@ curl -s https://content.splunkresearch.com | jq } ``` -## Getting Started - -Once you've installed our [app](https://github.com/splunk/security_content/releases), we recommend using our Analytic Story Execution App [(ASX)](https://github.com/splunk/analytics_story_execution) to execute and schedule all of the detections a story automatically. - ## Test Out The Detections -The [attack_range](https://github.com/splunk/attack_range) project allows you to spin up an enviroment and launch attacks against it to test the detections. +The [attack_range](https://github.com/splunk/attack_range) project allows you to spin up an enviroment and launch attacks against it to test the detections. ## Questions? -If you get stuck or need help with any of our tools, see our [support options](https://github.com/splunk/security_content#support). +If you get stuck or need help with any of our tools, see our [support options](https://github.com/splunk/security_content#support). ## Contribute Content If you want to help the rest of the security community by sharing your own detections, see our [contributor guide](https://github.com/splunk/security_content/blob/develop/docs/CONTRIBUTING.md). Digital defenders unite! @@ -39,7 +37,7 @@ If you want to help the rest of the security community by sharing your own detec * [baselines/](https://github.com/splunk/security_content/tree/develop/baselines): Splunk Phantom and Splunk Enterprise baseline searches needed to support detection searches in Analytic Stories #### Content Spec Files -* [stories](https://github.com/splunk/security_content/blob/develop/docs/spec/stories.spec.md) +* [stories](https://github.com/splunk/security_content/blob/develop/docs/spec/stories.spec.md) * [detections](https://github.com/splunk/security_content/blob/develop/docs/spec/detections.spec.md) * [deployments](https://github.com/splunk/security_content/blob/develop/docs/spec/deployments.spec.md) * [responses](https://github.com/splunk/security_content/blob/develop/docs/spec/responses.spec.md) @@ -47,6 +45,3 @@ If you want to help the rest of the security community by sharing your own detec * [baselines](https://github.com/splunk/security_content/blob/develop/docs/spec/baselines.spec.md) * [lookups](https://github.com/splunk/security_content/blob/develop/docs/spec/lookups.spec.md) * [macros](https://github.com/splunk/security_content/blob/develop/docs/spec/macros.spec.md) - - - diff --git a/docs/detections.md b/docs/detections.md new file mode 100644 index 0000000000..d7d3480a81 --- /dev/null +++ b/docs/detections.md @@ -0,0 +1,27645 @@ +# Splunk Security Content Detections +![security_content](static/logo.png) +===== +All the detections shipped to different Splunk products. Below is a breakdown by kind. + +## Cloud +
+ details + + + + + + + + + + + +- [AWS Cross Account Activity From Previously Unseen Account](#aws-cross-account-activity-from-previously-unseen-account) + + + +- [AWS Detect Users creating keys with encrypt policy without MFA](#aws-detect-users-creating-keys-with-encrypt-policy-without-mfa) + + + +- [AWS Detect Users with KMS keys performing encryption S3](#aws-detect-users-with-kms-keys-performing-encryption-s3) + + + +- [AWS EKS Kubernetes cluster sensitive object access](#aws-eks-kubernetes-cluster-sensitive-object-access) + + + +- [AWS Network Access Control List Created with All Open Ports](#aws-network-access-control-list-created-with-all-open-ports) + + + +- [AWS Network Access Control List Deleted](#aws-network-access-control-list-deleted) + + + +- [AWS SAML Access by Provider User and Principal](#aws-saml-access-by-provider-user-and-principal) + + + +- [AWS SAML Update identity provider](#aws-saml-update-identity-provider) + + + + + + + + + + + +- [Abnormally High Number Of Cloud Infrastructure API Calls](#abnormally-high-number-of-cloud-infrastructure-api-calls) + + + +- [Abnormally High Number Of Cloud Instances Destroyed](#abnormally-high-number-of-cloud-instances-destroyed) + + + +- [Abnormally High Number Of Cloud Instances Launched](#abnormally-high-number-of-cloud-instances-launched) + + + +- [Abnormally High Number Of Cloud Security Group API Calls](#abnormally-high-number-of-cloud-security-group-api-calls) + + + + + +- [Amazon EKS Kubernetes Pod scan detection](#amazon-eks-kubernetes-pod-scan-detection) + + + +- [Amazon EKS Kubernetes cluster scan detection](#amazon-eks-kubernetes-cluster-scan-detection) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Cloud API Calls From Previously Unseen User Roles](#cloud-api-calls-from-previously-unseen-user-roles) + + + +- [Cloud Compute Instance Created By Previously Unseen User](#cloud-compute-instance-created-by-previously-unseen-user) + + + +- [Cloud Compute Instance Created In Previously Unused Region](#cloud-compute-instance-created-in-previously-unused-region) + + + +- [Cloud Compute Instance Created With Previously Unseen Image](#cloud-compute-instance-created-with-previously-unseen-image) + + + +- [Cloud Compute Instance Created With Previously Unseen Instance Type](#cloud-compute-instance-created-with-previously-unseen-instance-type) + + + +- [Cloud Instance Modified By Previously Unseen User](#cloud-instance-modified-by-previously-unseen-user) + + + + + +- [Cloud Provisioning Activity From Previously Unseen City](#cloud-provisioning-activity-from-previously-unseen-city) + + + +- [Cloud Provisioning Activity From Previously Unseen Country](#cloud-provisioning-activity-from-previously-unseen-country) + + + +- [Cloud Provisioning Activity From Previously Unseen IP Address](#cloud-provisioning-activity-from-previously-unseen-ip-address) + + + +- [Cloud Provisioning Activity From Previously Unseen Region](#cloud-provisioning-activity-from-previously-unseen-region) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect AWS Console Login by New User](#detect-aws-console-login-by-new-user) + + + +- [Detect AWS Console Login by User from New City](#detect-aws-console-login-by-user-from-new-city) + + + +- [Detect AWS Console Login by User from New Country](#detect-aws-console-login-by-user-from-new-country) + + + +- [Detect AWS Console Login by User from New Region](#detect-aws-console-login-by-user-from-new-region) + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect GCP Storage access from a new IP](#detect-gcp-storage-access-from-a-new-ip) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect New Open GCP Storage Buckets](#detect-new-open-gcp-storage-buckets) + + + +- [Detect New Open S3 Buckets over AWS CLI](#detect-new-open-s3-buckets-over-aws-cli) + + + +- [Detect New Open S3 buckets](#detect-new-open-s3-buckets) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect S3 access from a new IP](#detect-s3-access-from-a-new-ip) + + + + + + + + + +- [Detect Spike in AWS Security Hub Alerts for EC2 Instance](#detect-spike-in-aws-security-hub-alerts-for-ec2-instance) + + + +- [Detect Spike in AWS Security Hub Alerts for User](#detect-spike-in-aws-security-hub-alerts-for-user) + + + + + +- [Detect Spike in S3 Bucket deletion](#detect-spike-in-s3-bucket-deletion) + + + + + +- [Detect Spike in blocked Outbound Traffic from your AWS](#detect-spike-in-blocked-outbound-traffic-from-your-aws) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [GCP Detect accounts with high risk roles by project](#gcp-detect-accounts-with-high-risk-roles-by-project) + + + +- [GCP Detect gcploit framework](#gcp-detect-gcploit-framework) + + + +- [GCP Detect high risk permissions by resource and account](#gcp-detect-high-risk-permissions-by-resource-and-account) + + + + + +- [GCP Kubernetes cluster pod scan detection](#gcp-kubernetes-cluster-pod-scan-detection) + + + +- [GCP Kubernetes cluster scan detection](#gcp-kubernetes-cluster-scan-detection) + + + + + +- [High Number of Login Failures from a single source](#high-number-of-login-failures-from-a-single-source) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Kubernetes AWS detect RBAC authorization by account](#kubernetes-aws-detect-rbac-authorization-by-account) + + + +- [Kubernetes AWS detect most active service accounts by pod](#kubernetes-aws-detect-most-active-service-accounts-by-pod) + + + +- [Kubernetes AWS detect sensitive role access](#kubernetes-aws-detect-sensitive-role-access) + + + +- [Kubernetes AWS detect service accounts forbidden failure access](#kubernetes-aws-detect-service-accounts-forbidden-failure-access) + + + +- [Kubernetes AWS detect suspicious kubectl calls](#kubernetes-aws-detect-suspicious-kubectl-calls) + + + +- [Kubernetes Azure detect RBAC authorization by account](#kubernetes-azure-detect-rbac-authorization-by-account) + + + +- [Kubernetes Azure detect most active service accounts by pod namespace](#kubernetes-azure-detect-most-active-service-accounts-by-pod-namespace) + + + +- [Kubernetes Azure detect sensitive object access](#kubernetes-azure-detect-sensitive-object-access) + + + +- [Kubernetes Azure detect sensitive role access](#kubernetes-azure-detect-sensitive-role-access) + + + +- [Kubernetes Azure detect service accounts forbidden failure access](#kubernetes-azure-detect-service-accounts-forbidden-failure-access) + + + +- [Kubernetes Azure detect suspicious kubectl calls](#kubernetes-azure-detect-suspicious-kubectl-calls) + + + +- [Kubernetes Azure pod scan fingerprint](#kubernetes-azure-pod-scan-fingerprint) + + + +- [Kubernetes Azure scan fingerprint](#kubernetes-azure-scan-fingerprint) + + + +- [Kubernetes GCP detect RBAC authorizations by account](#kubernetes-gcp-detect-rbac-authorizations-by-account) + + + +- [Kubernetes GCP detect most active service accounts by pod](#kubernetes-gcp-detect-most-active-service-accounts-by-pod) + + + +- [Kubernetes GCP detect sensitive object access](#kubernetes-gcp-detect-sensitive-object-access) + + + +- [Kubernetes GCP detect sensitive role access](#kubernetes-gcp-detect-sensitive-role-access) + + + +- [Kubernetes GCP detect service accounts forbidden failure access](#kubernetes-gcp-detect-service-accounts-forbidden-failure-access) + + + +- [Kubernetes GCP detect suspicious kubectl calls](#kubernetes-gcp-detect-suspicious-kubectl-calls) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [New container uploaded to AWS ECR](#new-container-uploaded-to-aws-ecr) + + + + + + + +- [O365 Add App Role Assignment Grant User](#o365-add-app-role-assignment-grant-user) + + + +- [O365 Added Service Principal](#o365-added-service-principal) + + + +- [O365 Bypass MFA via Trusted IP](#o365-bypass-mfa-via-trusted-ip) + + + +- [O365 Disable MFA](#o365-disable-mfa) + + + +- [O365 Excessive Authentication Failures Alert](#o365-excessive-authentication-failures-alert) + + + +- [O365 Excessive SSO logon errors](#o365-excessive-sso-logon-errors) + + + +- [O365 New Federated Domain Added](#o365-new-federated-domain-added) + + + +- [O365 PST export alert](#o365-pst-export-alert) + + + +- [O365 Suspicious Admin Email Forwarding](#o365-suspicious-admin-email-forwarding) + + + +- [O365 Suspicious Rights Delegation](#o365-suspicious-rights-delegation) + + + +- [O365 Suspicious User Email Forwarding](#o365-suspicious-user-email-forwarding) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [aws detect attach to role policy](#aws-detect-attach-to-role-policy) + + + +- [aws detect permanent key creation](#aws-detect-permanent-key-creation) + + + +- [aws detect role creation](#aws-detect-role-creation) + + + +- [aws detect sts assume role abuse](#aws-detect-sts-assume-role-abuse) + + + +- [aws detect sts get session token abuse](#aws-detect-sts-get-session-token-abuse) + + + +- [gcp detect oauth token abuse](#gcp-detect-oauth-token-abuse) + + +
+ +## Endpoint +
+ details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Access LSASS Memory for Dump Creation](#access-lsass-memory-for-dump-creation) + + + + + + + +- [Applying Stolen Credentials via Mimikatz modules](#applying-stolen-credentials-via-mimikatz-modules) + + + +- [Applying Stolen Credentials via PowerSploit modules](#applying-stolen-credentials-via-powersploit-modules) + + + +- [Assessment of Credential Strength via DSInternals modules](#assessment-of-credential-strength-via-dsinternals-modules) + + + +- [Attempt To Add Certificate To Untrusted Store](#attempt-to-add-certificate-to-untrusted-store) + + + +- [Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass](#attempt-to-set-default-powershell-execution-policy-to-unrestricted-or-bypass) + + + +- [Attempt To Stop Security Service](#attempt-to-stop-security-service) + + + +- [Attempted Credential Dump From Registry via Reg exe](#attempted-credential-dump-from-registry-via-reg-exe) + + + +- [Attempted Credential Dump From Registry via Reg exe](#attempted-credential-dump-from-registry-via-reg-exe) + + + +- [BCDEdit Failure Recovery Modification](#bcdedit-failure-recovery-modification) + + + +- [Batch File Write to System32](#batch-file-write-to-system32) + + + +- [Certutil exe certificate extraction](#certutil-exe-certificate-extraction) + + + +- [Child Processes of Spoolsv exe](#child-processes-of-spoolsv-exe) + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Common Ransomware Extensions](#common-ransomware-extensions) + + + +- [Common Ransomware Notes](#common-ransomware-notes) + + + +- [Create Remote Thread into LSASS](#create-remote-thread-into-lsass) + + + +- [Create local admin accounts using net exe](#create-local-admin-accounts-using-net-exe) + + + +- [Create or delete windows shares using net exe](#create-or-delete-windows-shares-using-net-exe) + + + +- [Creation of Shadow Copy](#creation-of-shadow-copy) + + + +- [Creation of Shadow Copy with wmic and powershell](#creation-of-shadow-copy-with-wmic-and-powershell) + + + +- [Creation of lsass Dump with Taskmgr](#creation-of-lsass-dump-with-taskmgr) + + + +- [Credential Dumping via Copy Command from Shadow Copy](#credential-dumping-via-copy-command-from-shadow-copy) + + + +- [Credential Dumping via Symlink to Shadow Copy](#credential-dumping-via-symlink-to-shadow-copy) + + + +- [Credential Extraction indicative of FGDump and CacheDump with s option](#credential-extraction-indicative-of-fgdump-and-cachedump-with-s-option) + + + +- [Credential Extraction indicative of FGDump and CacheDump with v option](#credential-extraction-indicative-of-fgdump-and-cachedump-with-v-option) + + + +- [Credential Extraction indicative of Lazagne command line options](#credential-extraction-indicative-of-lazagne-command-line-options) + + + +- [Credential Extraction indicative of use of DSInternals credential conversion modules](#credential-extraction-indicative-of-use-of-dsinternals-credential-conversion-modules) + + + +- [Credential Extraction indicative of use of DSInternals modules](#credential-extraction-indicative-of-use-of-dsinternals-modules) + + + +- [Credential Extraction indicative of use of Mimikatz modules](#credential-extraction-indicative-of-use-of-mimikatz-modules) + + + +- [Credential Extraction indicative of use of PowerSploit modules](#credential-extraction-indicative-of-use-of-powersploit-modules) + + + +- [Credential Extraction native Microsoft debuggers peek into the kernel](#credential-extraction-native-microsoft-debuggers-peek-into-the-kernel) + + + +- [Credential Extraction native Microsoft debuggers via z command line option](#credential-extraction-native-microsoft-debuggers-via-z-command-line-option) + + + +- [Credential Extraction via Get-ADDBAccount module present in PowerSploit and DSInternals](#credential-extraction-via-get-addbaccount-module-present-in-powersploit-and-dsinternals) + + + + + + + + + + + +- [Deleting Shadow Copies](#deleting-shadow-copies) + + + + + + + + + + + + + + + + + +- [Detect Activity Related to Pass the Hash Attacks](#detect-activity-related-to-pass-the-hash-attacks) + + + +- [Detect Baron Samedit CVE-2021-3156](#detect-baron-samedit-cve-2021-3156) + + + +- [Detect Baron Samedit CVE-2021-3156 Segfault](#detect-baron-samedit-cve-2021-3156-segfault) + + + +- [Detect Baron Samedit CVE-2021-3156 via OSQuery](#detect-baron-samedit-cve-2021-3156-via-osquery) + + + +- [Detect Computer Changed with Anonymous Account](#detect-computer-changed-with-anonymous-account) + + + +- [Detect Credential Dumping through LSASS access](#detect-credential-dumping-through-lsass-access) + + + + + +- [Detect Dump LSASS Memory using comsvcs](#detect-dump-lsass-memory-using-comsvcs) + + + +- [Detect Excessive Account Lockouts From Endpoint](#detect-excessive-account-lockouts-from-endpoint) + + + +- [Detect Excessive User Account Lockouts](#detect-excessive-user-account-lockouts) + + + + + + + +- [Detect HTML Help Renamed](#detect-html-help-renamed) + + + +- [Detect HTML Help Spawn Child Process](#detect-html-help-spawn-child-process) + + + +- [Detect HTML Help URL in Command Line](#detect-html-help-url-in-command-line) + + + +- [Detect HTML Help Using InfoTech Storage Handlers](#detect-html-help-using-infotech-storage-handlers) + + + + + +- [Detect Kerberoasting](#detect-kerberoasting) + + + + + + + +- [Detect MSHTA Url in Command Line](#detect-mshta-url-in-command-line) + + + + + + + +- [Detect New Local Admin account](#detect-new-local-admin-account) + + + + + + + + + + + +- [Detect Oulook exe writing a zip file](#detect-oulook-exe-writing-a--zip-file) + + + + + +- [Detect Pass the Hash](#detect-pass-the-hash) + + + +- [Detect Path Interception By Creation Of program exe](#detect-path-interception-by-creation-of-program-exe) + + + + + +- [Detect Prohibited Applications Spawning cmd exe](#detect-prohibited-applications-spawning-cmd-exe) + + + +- [Detect Prohibited Applications Spawning cmd exe](#detect-prohibited-applications-spawning-cmd-exe) + + + +- [Detect PsExec With accepteula Flag](#detect-psexec-with-accepteula-flag) + + + +- [Detect Rare Executables](#detect-rare-executables) + + + +- [Detect Regasm Spawning a Process](#detect-regasm-spawning-a-process) + + + +- [Detect Regasm with Network Connection](#detect-regasm-with-network-connection) + + + +- [Detect Regasm with no Command Line Arguments](#detect-regasm-with-no-command-line-arguments) + + + +- [Detect Regsvcs Spawning a Process](#detect-regsvcs-spawning-a-process) + + + +- [Detect Regsvcs with Network Connection](#detect-regsvcs-with-network-connection) + + + +- [Detect Regsvcs with No Command Line Arguments](#detect-regsvcs-with-no-command-line-arguments) + + + +- [Detect Regsvr32 Application Control Bypass](#detect-regsvr32-application-control-bypass) + + + + + +- [Detect Rundll32 Application Control Bypass - advpack](#detect-rundll32-application-control-bypass---advpack) + + + +- [Detect Rundll32 Application Control Bypass - setupapi](#detect-rundll32-application-control-bypass---setupapi) + + + +- [Detect Rundll32 Application Control Bypass - syssetup](#detect-rundll32-application-control-bypass---syssetup) + + + +- [Detect Rundll32 Inline HTA Execution](#detect-rundll32-inline-hta-execution) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect Use of cmd exe to Launch Script Interpreters](#detect-use-of-cmd-exe-to-launch-script-interpreters) + + + + + + + + + + + + + + + +- [Detect mshta inline hta execution](#detect-mshta-inline-hta-execution) + + + +- [Detect mshta renamed](#detect-mshta-renamed) + + + + + + + +- [Detect processes used for System Network Configuration Discovery](#detect-processes-used-for-system-network-configuration-discovery) + + + + + + + +- [Detection of tools built by NirSoft](#detection-of-tools-built-by-nirsoft) + + + +- [Disabling Remote User Account Control](#disabling-remote-user-account-control) + + + +- [Dump LSASS via comsvcs DLL](#dump-lsass-via-comsvcs-dll) + + + +- [Dump LSASS via procdump](#dump-lsass-via-procdump) + + + +- [Dump LSASS via procdump Rename](#dump-lsass-via-procdump-rename) + + + + + + + + + + + + + + + + + + + + + + + +- [Execution of File with Multiple Extensions](#execution-of-file-with-multiple-extensions) + + + + + +- [File with Samsam Extension](#file-with-samsam-extension) + + + +- [First Time Seen Child Process of Zoom](#first-time-seen-child-process-of-zoom) + + + +- [First Time Seen Running Windows Service](#first-time-seen-running-windows-service) + + + +- [First time seen command line argument](#first-time-seen-command-line-argument) + + + + + + + + + + + + + + + + + +- [Hiding Files And Directories With Attrib exe](#hiding-files-and-directories-with-attrib-exe) + + + + + + + + + +- [Illegal Access To User Content via PowerSploit modules](#illegal-access-to-user-content-via-powersploit-modules) + + + +- [Illegal Account Creation via PowerSploit modules](#illegal-account-creation-via-powersploit-modules) + + + +- [Illegal Deletion of Logs via Mimikatz modules](#illegal-deletion-of-logs-via-mimikatz-modules) + + + +- [Illegal Enabling or Disabling of Accounts via DSInternals modules](#illegal-enabling-or-disabling-of-accounts-via-dsinternals-modules) + + + +- [Illegal Management of Active Directory Elements and Policies via DSInternals modules](#illegal-management-of-active-directory-elements-and-policies-via-dsinternals-modules) + + + +- [Illegal Management of Computers and Active Directory Elements via PowerSploit modules](#illegal-management-of-computers-and-active-directory-elements-via-powersploit-modules) + + + +- [Illegal Privilege Elevation and Persistence via PowerSploit modules](#illegal-privilege-elevation-and-persistence-via-powersploit-modules) + + + +- [Illegal Privilege Elevation via Mimikatz modules](#illegal-privilege-elevation-via-mimikatz-modules) + + + +- [Illegal Service and Process Control via Mimikatz modules](#illegal-service-and-process-control-via-mimikatz-modules) + + + +- [Illegal Service and Process Control via PowerSploit modules](#illegal-service-and-process-control-via-powersploit-modules) + + + +- [Kerberoasting spn request with RC4 encryption](#kerberoasting-spn-request-with-rc4-encryption) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [MacOS - Re-opened Applications](#macos---re-opened-applications) + + + +- [Malicious PowerShell Process - Connect To Internet With Hidden Window](#malicious-powershell-process---connect-to-internet-with-hidden-window) + + + +- [Malicious PowerShell Process - Encoded Command](#malicious-powershell-process---encoded-command) + + + +- [Malicious PowerShell Process - Execution Policy Bypass](#malicious-powershell-process---execution-policy-bypass) + + + + + +- [Malicious PowerShell Process With Obfuscation Techniques](#malicious-powershell-process-with-obfuscation-techniques) + + + + + + + +- [Monitor Registry Keys for Print Monitors](#monitor-registry-keys-for-print-monitors) + + + + + +- [More than usual number of LOLBAS applications in short time period](#more-than-usual-number-of-lolbas-applications-in-short-time-period) + + + + + +- [NLTest Domain Trust Discovery](#nltest-domain-trust-discovery) + + + + + + + +- [Ntdsutil export ntds](#ntdsutil-export-ntds) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Overwriting Accessibility Binaries](#overwriting-accessibility-binaries) + + + + + +- [Probing Access with Stolen Credentials via PowerSploit modules](#probing-access-with-stolen-credentials-via-powersploit-modules) + + + +- [Process Creating LNK file in Suspicious Location](#process-creating-lnk-file-in-suspicious-location) + + + +- [Process Execution via WMI](#process-execution-via-wmi) + + + +- [Processes Tapping Keyboard Events](#processes-tapping-keyboard-events) + + + + + +- [Processes launching netsh](#processes-launching-netsh) + + + + + + + + + + + +- [Rare Parent-Child Process Relationship](#rare-parent-child-process-relationship) + + + +- [Reconnaissance and Access to Accounts Groups and Policies via PowerSploit modules](#reconnaissance-and-access-to-accounts-groups-and-policies-via-powersploit-modules) + + + +- [Reconnaissance and Access to Accounts and Groups via Mimikatz modules](#reconnaissance-and-access-to-accounts-and-groups-via-mimikatz-modules) + + + +- [Reconnaissance and Access to Active Directoty Infrastructure via PowerSploit modules](#reconnaissance-and-access-to-active-directoty-infrastructure-via-powersploit-modules) + + + +- [Reconnaissance and Access to Computers and Domains via PowerSploit modules](#reconnaissance-and-access-to-computers-and-domains-via-powersploit-modules) + + + +- [Reconnaissance and Access to Computers via Mimikatz modules](#reconnaissance-and-access-to-computers-via-mimikatz-modules) + + + +- [Reconnaissance and Access to Operating System Elements via PowerSploit modules](#reconnaissance-and-access-to-operating-system-elements-via-powersploit-modules) + + + +- [Reconnaissance and Access to Processes and Services via Mimikatz modules](#reconnaissance-and-access-to-processes-and-services-via-mimikatz-modules) + + + +- [Reconnaissance and Access to Shared Resources via Mimikatz modules](#reconnaissance-and-access-to-shared-resources-via-mimikatz-modules) + + + +- [Reconnaissance and Access to Shared Resources via PowerSploit modules](#reconnaissance-and-access-to-shared-resources-via-powersploit-modules) + + + +- [Reconnaissance of Access and Persistence Opportunities via PowerSploit modules](#reconnaissance-of-access-and-persistence-opportunities-via-powersploit-modules) + + + +- [Reconnaissance of Connectivity via PowerSploit modules](#reconnaissance-of-connectivity-via-powersploit-modules) + + + +- [Reconnaissance of Credential Stores and Services via Mimikatz modules](#reconnaissance-of-credential-stores-and-services-via-mimikatz-modules) + + + +- [Reconnaissance of Defensive Tools via PowerSploit modules](#reconnaissance-of-defensive-tools-via-powersploit-modules) + + + +- [Reconnaissance of Privilege Escalation Opportunities via PowerSploit modules](#reconnaissance-of-privilege-escalation-opportunities-via-powersploit-modules) + + + +- [Reconnaissance of Process or Service Hijacking Opportunities via Mimikatz modules](#reconnaissance-of-process-or-service-hijacking-opportunities-via-mimikatz-modules) + + + +- [Reg exe Manipulating Windows Services Registry Keys](#reg-exe-manipulating-windows-services-registry-keys) + + + + + +- [Registry Keys Used For Persistence](#registry-keys-used-for-persistence) + + + +- [Registry Keys Used For Privilege Escalation](#registry-keys-used-for-privilege-escalation) + + + +- [Registry Keys for Creating SHIM Databases](#registry-keys-for-creating-shim-databases) + + + + + + + +- [Remote Desktop Process Running On System](#remote-desktop-process-running-on-system) + + + +- [Remote Process Instantiation via WMI](#remote-process-instantiation-via-wmi) + + + + + + + +- [RunDLL Loading DLL By Ordinal](#rundll-loading-dll-by-ordinal) + + + +- [Ryuk Test Files Detected](#ryuk-test-files-detected) + + + + + + + + + +- [Samsam Test File Write](#samsam-test-file-write) + + + +- [Sc exe Manipulating Windows Services](#sc-exe-manipulating-windows-services) + + + +- [Scheduled Task Deleted Or Created via CMD](#scheduled-task-deleted-or-created-via-cmd) + + + + + +- [Schtasks scheduling job on remote system](#schtasks-scheduling-job-on-remote-system) + + + +- [Schtasks used for forcing a reboot](#schtasks-used-for-forcing-a-reboot) + + + +- [Script Execution via WMI](#script-execution-via-wmi) + + + +- [Setting Credentials via DSInternals modules](#setting-credentials-via-dsinternals-modules) + + + +- [Setting Credentials via Mimikatz modules](#setting-credentials-via-mimikatz-modules) + + + +- [Setting Credentials via PowerSploit modules](#setting-credentials-via-powersploit-modules) + + + +- [Shim Database File Creation](#shim-database-file-creation) + + + +- [Shim Database Installation With Suspicious Parameters](#shim-database-installation-with-suspicious-parameters) + + + +- [Short Lived Windows Accounts](#short-lived-windows-accounts) + + + +- [Single Letter Process On Endpoint](#single-letter-process-on-endpoint) + + + + + +- [Spike in File Writes](#spike-in-file-writes) + + + + + +- [Sunburst Correlation DLL and Network Event](#sunburst-correlation-dll-and-network-event) + + + + + + + + + + + + + + + +- [Suspicious MSBuild Rename](#suspicious-msbuild-rename) + + + +- [Suspicious MSBuild Spawn](#suspicious-msbuild-spawn) + + + +- [Suspicious Reg exe Process](#suspicious-reg-exe-process) + + + +- [Suspicious Regsvr32 Register Suspicious Path](#suspicious-regsvr32-register-suspicious-path) + + + +- [Suspicious Rundll32 Rename](#suspicious-rundll32-rename) + + + +- [Suspicious Rundll32 StartW](#suspicious-rundll32-startw) + + + +- [Suspicious Rundll32 dllregisterserver](#suspicious-rundll32-dllregisterserver) + + + +- [Suspicious Rundll32 no CommandLine Arguments](#suspicious-rundll32-no-commandline-arguments) + + + +- [Suspicious microsoft workflow compiler rename](#suspicious-microsoft-workflow-compiler-rename) + + + +- [Suspicious microsoft workflow compiler usage](#suspicious-microsoft-workflow-compiler-usage) + + + +- [Suspicious msbuild path](#suspicious-msbuild-path) + + + +- [Suspicious mshta child process](#suspicious-mshta-child-process) + + + +- [Suspicious mshta spawn](#suspicious-mshta-spawn) + + + +- [Suspicious wevtutil Usage](#suspicious-wevtutil-usage) + + + + + +- [Suspicious writes to windows Recycle Bin](#suspicious-writes-to-windows-recycle-bin) + + + +- [System Information Discovery Detection](#system-information-discovery-detection) + + + +- [System Process Running from Unexpected Location](#system-process-running-from-unexpected-location) + + + +- [System Processes Run From Unexpected Locations](#system-processes-run-from-unexpected-locations) + + + + + +- [USN Journal Deletion](#usn-journal-deletion) + + + + + +- [Unload Sysmon Filter Driver](#unload-sysmon-filter-driver) + + + + + + + +- [Unusually Long Command Line](#unusually-long-command-line) + + + +- [Unusually Long Command Line](#unusually-long-command-line) + + + +- [Unusually Long Command Line - MLTK](#unusually-long-command-line---mltk) + + + + + +- [WBAdmin Delete System Backups](#wbadmin-delete-system-backups) + + + +- [WMI Permanent Event Subscription](#wmi-permanent-event-subscription) + + + +- [WMI Permanent Event Subscription - Sysmon](#wmi-permanent-event-subscription---sysmon) + + + +- [WMI Temporary Event Subscription](#wmi-temporary-event-subscription) + + + + + + + + + + + +- [Windows AdFind Exe](#windows-adfind-exe) + + + + + +- [Windows Event Log Cleared](#windows-event-log-cleared) + + + +- [Windows Security Account Manager Stopped](#windows-security-account-manager-stopped) + + + + + + + + + + + + + + + + + + +
+ +## Network +
+ details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [DNS Query Length Outliers - MLTK](#dns-query-length-outliers---mltk) + + + +- [DNS Query Length With High Standard Deviation](#dns-query-length-with-high-standard-deviation) + + + + + +- [DNS record changed](#dns-record-changed) + + + + + + + +- [Detect ARP Poisoning](#detect-arp-poisoning) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect IPv6 Network Infrastructure Threats](#detect-ipv6-network-infrastructure-threats) + + + + + +- [Detect Large Outbound ICMP Packets](#detect-large-outbound-icmp-packets) + + + + + + + + + + + + + + + + + + + + + + + +- [Detect Outbound SMB Traffic](#detect-outbound-smb-traffic) + + + + + + + +- [Detect Port Security Violation](#detect-port-security-violation) + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect Rogue DHCP Server](#detect-rogue-dhcp-server) + + + + + + + + + + + + + +- [Detect SNICat SNI Exfiltration](#detect-snicat-sni-exfiltration) + + + +- [Detect Software Download To Network Device](#detect-software-download-to-network-device) + + + + + + + + + + + + + + + + + +- [Detect Traffic Mirroring](#detect-traffic-mirroring) + + + + + +- [Detect Unauthorized Assets by MAC address](#detect-unauthorized-assets-by-mac-address) + + + + + +- [Detect Windows DNS SIGRed via Splunk Stream](#detect-windows-dns-sigred-via-splunk-stream) + + + +- [Detect Windows DNS SIGRed via Zeek](#detect-windows-dns-sigred-via-zeek) + + + +- [Detect Zerologon via Zeek](#detect-zerologon-via-zeek) + + + + + +- [Detect hosts connecting to dynamic domain providers](#detect-hosts-connecting-to-dynamic-domain-providers) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Excessive DNS Failures](#excessive-dns-failures) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Hosts receiving high volume of network traffic from email server](#hosts-receiving-high-volume-of-network-traffic-from-email-server) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Large Volume of DNS ANY Queries](#large-volume-of-dns-any-queries) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Prohibited Network Traffic Allowed](#prohibited-network-traffic-allowed) + + + + + +- [Protocol or Port Mismatch](#protocol-or-port-mismatch) + + + +- [Protocols passing authentication in cleartext](#protocols-passing-authentication-in-cleartext) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Remote Desktop Network Bruteforce](#remote-desktop-network-bruteforce) + + + +- [Remote Desktop Network Traffic](#remote-desktop-network-traffic) + + + + + + + + + + + + + + + +- [SMB Traffic Spike](#smb-traffic-spike) + + + +- [SMB Traffic Spike - MLTK](#smb-traffic-spike---mltk) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [TOR Traffic](#tor-traffic) + + + + + + + + + + + + + + + + + + + +- [Unusually Long Content-Type Length](#unusually-long-content-type-length) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +## Application +
+ details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect New Login Attempts to Routers](#detect-new-login-attempts-to-routers) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Email Attachments With Lots Of Spaces](#email-attachments-with-lots-of-spaces) + + + +- [Email files written outside of the Outlook directory](#email-files-written-outside-of-the-outlook-directory) + + + +- [Email servers sending high volume traffic to hosts](#email-servers-sending-high-volume-traffic-to-hosts) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Monitor Email For Brand Abuse](#monitor-email-for-brand-abuse) + + + + + + + + + +- [Multiple Okta Users With Invalid Credentials From The Same IP](#multiple-okta-users-with-invalid-credentials-from-the-same-ip) + + + + + + + +- [No Windows Updates in a time frame](#no-windows-updates-in-a-time-frame) + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Okta Account Lockout Events](#okta-account-lockout-events) + + + +- [Okta Failed SSO Attempts](#okta-failed-sso-attempts) + + + +- [Okta User Logins From Multiple Cities](#okta-user-logins-from-multiple-cities) + + + + + + + + + +- [Phishing Email Detection by Machine Learning Method - SSA](#phishing-email-detection-by-machine-learning-method---ssa) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Spectre and Meltdown Vulnerable Systems](#spectre-and-meltdown-vulnerable-systems) + + + + + + + + + + + + + +- [Suspicious Email - UBA Anomaly](#suspicious-email---uba-anomaly) + + + +- [Suspicious Email Attachment Extensions](#suspicious-email-attachment-extensions) + + + + + +- [Suspicious Java Classes](#suspicious-java-classes) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Web Servers Executing Suspicious Processes](#web-servers-executing-suspicious-processes) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +## Web +
+ details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect F5 TMUI RCE CVE-2020-5902](#detect-f5-tmui-rce-cve-2020-5902) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Detect attackers scanning for vulnerable JBoss servers](#detect-attackers-scanning-for-vulnerable-jboss-servers) + + + + + +- [Detect malicious requests to exploit JBoss servers](#detect-malicious-requests-to-exploit-jboss-servers) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Monitor Web Traffic For Brand Abuse](#monitor-web-traffic-for-brand-abuse) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [SQL Injection with Long URLs](#sql-injection-with-long-urls) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Supernova Webshell](#supernova-webshell) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- [Web Fraud - Account Harvesting](#web-fraud---account-harvesting) + + + +- [Web Fraud - Anomalous User Clickspeed](#web-fraud---anomalous-user-clickspeed) + + + +- [Web Fraud - Password Sharing Across Accounts](#web-fraud---password-sharing-across-accounts) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +### AWS Cloud Provisioning From Previously Unseen City +This search looks for AWS provisioning activities from previously unseen cities. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-03-16 + +
+ details + +#### Search +``` +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search City=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search City=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by City +| eval newCity=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCity=1 +| table City] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, City, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_city_filter` +``` +#### Associated Analytic Story + +* AWS Suspicious Provisioning Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new city is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your city, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### AWS Cloud Provisioning From Previously Unseen Country +This search looks for AWS provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-03-16 + +
+ details + +#### Search +``` +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by Country +| eval newCountry=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCountry=1 +| table Country] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, Country, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_country_filter` +``` +#### Associated Analytic Story + +* AWS Suspicious Provisioning Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching over plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new country is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### AWS Cloud Provisioning From Previously Unseen IP Address +This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-03-16 + +
+ details + +#### Search +``` +`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress +| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newIP=1 +| table sourceIPAddress] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter` +``` +#### Associated Analytic Story + +* AWS Suspicious Provisioning Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### AWS Cloud Provisioning From Previously Unseen Region +This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-03-16 + +
+ details + +#### Search +``` +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Region=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region +| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newRegion=1 +| table Region] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, Region, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_region_filter` +``` +#### Associated Analytic Story + +* AWS Suspicious Provisioning Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new region is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your region, there should be few false positives. If you are located in regions where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### AWS Cross Account Activity From Previously Unseen Account +This search looks for AssumeRole events where an IAM role in a different account is requested for the first time. This search is deprecated and have been translated to use the latest Authentication Datamodel. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: +- **Last Updated**: 2020-05-28 + +
+ details + +#### Search +``` + +| tstats min(_time) as firstTime max(_time) as lastTime from datamodel=Authentication where Authentication.signature=AssumeRole by Authentication.vendor_account Authentication.user Authentication.src Authentication.user_role +| `drop_dm_object_name(Authentication)` +| rex field=user_role "arn:aws:sts:*:(?.*):" +| where vendor_account != dest_account +| rename vendor_account as requestingAccountId dest_account as requestedAccountId +| lookup previously_seen_aws_cross_account_activity requestingAccountId, requestedAccountId, OUTPUTNEW firstTime +| eval status = if(firstTime > relative_time(now(), "-24h@h"),"New Cross Account Activity","Previously Seen") +| where status = "New Cross Account Activity" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_cross_account_activity_from_previously_unseen_account_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud Authentication Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen AWS Cross Account Activity - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen AWS Cross Account Activity - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `aws_cross_account_activity_from_previously_unseen_account_filter` macro. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Using multiple AWS accounts and roles is perfectly valid behavior. It's suspicious when an account requests privileges of an account it hasn't before. You should validate with the account owner that this is a legitimate request. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### AWS Detect Users creating keys with encrypt policy without MFA +This search provides detection of KMS keys which action kms:Encrypt is accessible for everyone (also outside of your organization). This is an identicator that your account is compromised and the attacker uses the encryption key to compromise another company. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1486](https://attack.mitre.org/techniques/T1486/) +- **Last Updated**: 2021-01-11 + +
+ details + +#### Search +``` +`cloudtrail` eventName=CreateKey OR eventName=PutKeyPolicy +| spath input=requestParameters.policy output=key_policy_statements path=Statement{} +| mvexpand key_policy_statements +| spath input=key_policy_statements output=key_policy_action_1 path=Action +| spath input=key_policy_statements output=key_policy_action_2 path=Action{} +| eval key_policy_action=mvappend(key_policy_action_1, key_policy_action_2) +| spath input=key_policy_statements output=key_policy_principal path=Principal.AWS +| search key_policy_action="kms:Encrypt" AND key_policy_principal="*" +| stats count min(_time) as firstTime max(_time) as lastTime by eventName eventSource eventID awsRegion userIdentity.principalId +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_detect_users_creating_keys_with_encrypt_policy_without_mfa_filter` +``` +#### Associated Analytic Story + +* Ransomware Cloud + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1486 | Data Encrypted for Impact | Impact | + + +#### Kill Chain Phase + + +#### Known False Positives +unknown + +#### Reference + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/aws_kms_key/aws_cloudtrail_events.json + + +_version_: 1 +
+ +--- + +### AWS Detect Users with KMS keys performing encryption S3 +This search provides detection of users with KMS keys performing encryption specifically against S3 buckets. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1486](https://attack.mitre.org/techniques/T1486/) +- **Last Updated**: 2021-01-11 + +
+ details + +#### Search +``` +`cloudtrail` eventName=CopyObject requestParameters.x-amz-server-side-encryption="aws:kms" +| rename requestParameters.bucketName AS bucket_name, requestParameters.x-amz-copy-source AS src_file, requestParameters.key AS dest_file +| stats count min(_time) as firstTime max(_time) as lastTime values(src_file) AS src_file values(dest_file) AS dest_file values(userAgent) AS userAgent values(region) AS region values(src) AS src by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_detect_users_with_kms_keys_performing_encryption_s3_filter` +``` +#### Associated Analytic Story + +* Ransomware Cloud + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1486 | Data Encrypted for Impact | Impact | + + +#### Kill Chain Phase + + +#### Known False Positives +bucket with S3 encryption + +#### Reference + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/s3_file_encryption/aws_cloudtrail_events.json + + +_version_: 1 +
+ +--- + +### AWS EKS Kubernetes cluster sensitive object access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmaps or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` objectRef.resource=secrets OR configmaps sourceIPs{}!=::1 sourceIPs{}!=127.0.0.1 +|table sourceIPs{} user.username user.groups{} objectRef.resource objectRef.namespace objectRef.name annotations.authorization.k8s.io/reason +|dedup user.username user.groups{} +|`aws_eks_kubernetes_cluster_sensitive_object_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install Splunk Add-on for Amazon Web Services and Splunk App for AWS. This search works with cloudwatch logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### AWS Network Access Control List Created with All Open Ports +The search looks for CloudTrail events to detect if any network ACLs were created with all the ports open to a specified CIDR. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2021-01-11 + +
+ details + +#### Search +``` +`cloudtrail` eventName=CreateNetworkAclEntry OR eventName=ReplaceNetworkAclEntry requestParameters.ruleAction=allow requestParameters.egress=false requestParameters.aclProtocol=-1 +| append [search `cloudtrail` eventName=CreateNetworkAclEntry OR eventName=ReplaceNetworkAclEntry requestParameters.ruleAction=allow requestParameters.egress=false requestParameters.aclProtocol!=-1 +| eval port_range='requestParameters.portRange.to' - 'requestParameters.portRange.from' +| where port_range>1024] +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId eventName requestParameters.ruleAction requestParameters.egress requestParameters.aclProtocol requestParameters.portRange.to requestParameters.portRange.from src userAgent requestParameters.cidrBlock +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_network_access_control_list_created_with_all_open_ports_filter` +``` +#### Associated Analytic Story + +* AWS Network ACL Activity + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS, version 4.4.0 or later, and configure your CloudTrail inputs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that an admin has created this ACL with all ports open for some legitimate purpose however, this should be scoped and not allowed in production environment. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/aws_create_acl/aws_cloudtrail_events.json + + +_version_: 2 +
+ +--- + +### AWS Network Access Control List Deleted +Enforcing network-access controls is one of the defensive mechanisms used by cloud administrators to restrict access to a cloud instance. After the attacker has gained control of the AWS console by compromising an admin account, they can delete a network ACL and gain access to the instance from anywhere. This search will query the CloudTrail logs to detect users deleting network ACLs. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`cloudtrail` eventName=DeleteNetworkAclEntry requestParameters.egress=false +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId eventName requestParameters.egress src userAgent +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_network_access_control_list_deleted_filter` +``` +#### Associated Analytic Story + +* AWS Network ACL Activity + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that a user has legitimately deleted a network ACL. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/aws_delete_acl/aws_cloudtrail_events.json + + +_version_: 2 +
+ +--- + +### AWS SAML Access by Provider User and Principal +This search provides specific SAML access from specific Service Provider, user and targeted principal at AWS. This search provides specific information to detect abnormal access or potential credential hijack or forgery, specially in federated environments using SAML protocol inside the perimeter or cloud provider. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`cloudtrail` eventName=Assumerolewithsaml +| stats count min(_time) as firstTime max(_time) as lastTime by requestParameters.principalArn requestParameters.roleArn requestParameters.roleSessionName recipientAccountId responseElements.issuer sourceIPAddress userAgent +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_saml_access_by_provider_user_and_principal_filter` +``` +#### Associated Analytic Story + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +Attacks using a Golden SAML or SAML assertion hijacks or forgeries are very difficult to detect as accessing cloud providers with these assertions looks exactly like normal access, however things such as source IP sourceIPAddress user, and principal targeted at receiving cloud provider along with endpoint credential access and abuse detection searches can provide the necessary context to detect these attacks. + +#### Reference + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078/assume_role_with_saml/assume_role_with_saml.json + + +_version_: 1 +
+ +--- + +### AWS SAML Update identity provider +This search provides detection of updates to SAML provider in AWS. Updates to SAML provider need to be monitored closely as they may indicate possible perimeter compromise of federated credentials, or backdoor access from another cloud provider set by attacker. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`cloudtrail` eventName=UpdateSAMLProvider +| stats count min(_time) as firstTime max(_time) as lastTime by eventType eventName requestParameters.sAMLProviderArn userIdentity.sessionContext.sessionIssuer.arn sourceIPAddress userIdentity.accessKeyId userIdentity.principalId +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_saml_update_identity_provider_filter` +``` +#### Associated Analytic Story + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +Updating a SAML provider or creating a new one may not necessarily be malicious however it needs to be closely monitored. + +#### Reference + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078/update_saml_provider/update_saml_provider.json + + +_version_: 1 +
+ +--- + +### Abnormally High AWS Instances Launched by User +This search looks for CloudTrail events where a user successfully launches an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=RunInstances errorCode=success +| bucket span=10m _time +| stats count AS instances_launched by _time userName +| eventstats avg(instances_launched) as total_launched_avg, stdev(instances_launched) as total_launched_stdev +| eval threshold_value = 4 +| eval isOutlier=if(instances_launched > total_launched_avg+(total_launched_stdev * threshold_value), 1, 0) +| search isOutlier=1 AND _time >= relative_time(now(), "-10m@m") +| eval num_standard_deviations_away = round(abs(instances_launched - total_launched_avg) / total_launched_stdev, 2) +| table _time, userName, instances_launched, num_standard_deviations_away, total_launched_avg, total_launched_stdev +| `abnormally_high_aws_instances_launched_by_user_filter` +``` +#### Associated Analytic Story + +* AWS Cryptomining + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Abnormally High AWS Instances Launched by User - MLTK +This search looks for CloudTrail events where a user successfully launches an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=RunInstances errorCode=success `abnormally_high_aws_instances_launched_by_user___mltk_filter` +| bucket span=10m _time +| stats count as instances_launched by _time src_user +| apply ec2_excessive_runinstances_v1 +| rename "IsOutlier(instances_launched)" as isOutlier +| where isOutlier=1 +``` +#### Associated Analytic Story + +* AWS Cryptomining + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Abnormally High AWS Instances Terminated by User +This search looks for CloudTrail events where an abnormally high number of instances were successfully terminated by a user in a 10-minute window. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=TerminateInstances errorCode=success +| bucket span=10m _time +| stats count AS instances_terminated by _time userName +| eventstats avg(instances_terminated) as total_terminations_avg, stdev(instances_terminated) as total_terminations_stdev +| eval threshold_value = 4 +| eval isOutlier=if(instances_terminated > total_terminations_avg+(total_terminations_stdev * threshold_value), 1, 0) +| search isOutlier=1 AND _time >= relative_time(now(), "-10m@m") +| eval num_standard_deviations_away = round(abs(instances_terminated - total_terminations_avg) / total_terminations_stdev, 2) +|table _time, userName, instances_terminated, num_standard_deviations_away, total_terminations_avg, total_terminations_stdev +| `abnormally_high_aws_instances_terminated_by_user_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured with your AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify whether this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Abnormally High AWS Instances Terminated by User - MLTK +This search looks for CloudTrail events where a user successfully terminates an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=TerminateInstances errorCode=success `abnormally_high_aws_instances_terminated_by_user___mltk_filter` +| bucket span=10m _time +| stats count as instances_terminated by _time src_user +| apply ec2_excessive_terminateinstances_v1 +| rename "IsOutlier(instances_terminated)" as isOutlier +| where isOutlier=1 +``` +#### Associated Analytic Story + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Abnormally High Number Of Cloud Infrastructure API Calls +This search will detect a spike in the number of API calls made to your cloud infrastructure environment by a user. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-09-07 + +
+ details + +#### Search +``` + +| tstats count as api_calls values(All_Changes.command) as command from datamodel=Change where All_Changes.user!=unknown All_Changes.status=success by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join user HourOfDay isWeekend [ summary cloud_excessive_api_calls_v1] +| where cardinality >=16 +| apply cloud_excessive_api_calls_v1 threshold=0.005 +| rename "IsOutlier(api_calls)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| where api_calls > expected_upper_threshold +| eval distance_from_threshold = api_calls - expected_upper_threshold +| table _time, user, command, api_calls, expected_upper_threshold, distance_from_threshold +| `abnormally_high_number_of_cloud_infrastructure_api_calls_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud User Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Infrastructure API Calls Per User` to create the probability density function. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives + + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Abnormally High Number Of Cloud Instances Destroyed +This search finds for the number successfully destroyed cloud instances for every 4 hour block. This is split up between weekdays and the weekend. It then applies the probability densitiy model previously created and alerts on any outliers. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-08-21 + +
+ details + +#### Search +``` + +| tstats count as instances_destroyed values(All_Changes.object_id) as object_id from datamodel=Change where All_Changes.action=deleted AND All_Changes.status=success AND All_Changes.object_category=instance by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join HourOfDay isWeekend [summary cloud_excessive_instances_destroyed_v1] +| where cardinality >=16 +| apply cloud_excessive_instances_destroyed_v1 threshold=0.005 +| rename "IsOutlier(instances_destroyed)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| eval distance_from_threshold = instances_destroyed - expected_upper_threshold +| table _time, user, instances_destroyed, expected_upper_threshold, distance_from_threshold, object_id +| `abnormally_high_number_of_cloud_instances_destroyed_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud Instance Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Instances Destroyed` to create the probability density function. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured within a cloud infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Abnormally High Number Of Cloud Instances Launched +This search finds for the number successfully created cloud instances for every 4 hour block. This is split up between weekdays and the weekend. It then applies the probability densitiy model previously created and alerts on any outliers. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-08-21 + +
+ details + +#### Search +``` + +| tstats count as instances_launched values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=created) AND All_Changes.status=success AND All_Changes.object_category=instance by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join HourOfDay isWeekend [summary cloud_excessive_instances_created_v1] +| where cardinality >=16 +| apply cloud_excessive_instances_created_v1 threshold=0.005 +| rename "IsOutlier(instances_launched)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| eval distance_from_threshold = instances_launched - expected_upper_threshold +| table _time, user, instances_launched, expected_upper_threshold, distance_from_threshold, object_id +| `abnormally_high_number_of_cloud_instances_launched_filter` +``` +#### Associated Analytic Story + +* Cloud Cryptomining + +* Suspicious Cloud Instance Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Instances Launched` to create the probability density function. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Abnormally High Number Of Cloud Security Group API Calls +This search will detect a spike in the number of API calls made to your cloud infrastructure environment about security groups by a user. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-09-07 + +
+ details + +#### Search +``` + +| tstats count as security_group_api_calls values(All_Changes.command) as command from datamodel=Change where All_Changes.object_category=firewall AND All_Changes.status=success by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join user HourOfDay isWeekend [ summary cloud_excessive_security_group_api_calls_v1] +| where cardinality >=16 +| apply cloud_excessive_security_group_api_calls_v1 threshold=0.005 +| rename "IsOutlier(security_group_api_calls)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| where security_group_api_calls > expected_upper_threshold +| eval distance_from_threshold = security_group_api_calls - expected_upper_threshold +| table _time, user, command, security_group_api_calls, expected_upper_threshold, distance_from_threshold +| `abnormally_high_number_of_cloud_security_group_api_calls_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud User Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Security Group API Calls Per User` to create the probability density function model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives + + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Access LSASS Memory for Dump Creation +Detect memory dumping of the LSASS process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-12-06 + +
+ details + +#### Search +``` +`sysmon` EventCode=10 TargetImage=*lsass.exe CallTrace=*dbgcore.dll* OR CallTrace=*dbghelp.dll* +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, TargetImage, TargetProcessId, SourceImage, SourceProcessId +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `access_lsass_memory_for_dump_creation_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +This search requires Sysmon Logs and a Sysmon configuration, which includes EventCode 10 for lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators can create memory dumps for debugging purposes, but memory dumps of the LSASS process would be unusual. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Amazon EKS Kubernetes Pod scan detection +This search provides detection information on unauthenticated requests against Kubernetes' Pods API + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-04-15 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` "user.username"="system:anonymous" verb=list objectRef.resource=pods requestURI="/api/v1/pods" +| rename source as cluster_name sourceIPs{} as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(responseStatus.reason) values(responseStatus.code) values(userAgent) values(verb) values(requestURI) by src_ip cluster_name user.username user.groups{} +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `amazon_eks_kubernetes_pod_scan_detection_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on forAWS (version 4.4.0 or later), then configure your AWS CloudWatch EKS Logs.Please also customize the `kubernetes_pods_aws_scan_fingerprint_detection` macro to filter out the false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but frequency, UA and source IPs and direct request to API provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Amazon EKS Kubernetes cluster scan detection +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster in AWS + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-04-15 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` "user.username"="system:anonymous" userAgent!="AWS Security Scanner" +| rename sourceIPs{} as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(responseStatus.reason) values(source) as cluster_name values(responseStatus.code) values(userAgent) as http_user_agent values(verb) values(requestURI) by src_ip user.username user.groups{} +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +|`amazon_eks_kubernetes_cluster_scan_detection_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudWatch EKS Logs inputs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but frequency, UA and source IPs will provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Applying Stolen Credentials via Mimikatz modules +This detection indicates use of Mimikatz modules that facilitate Pass-the-Token attack, Golden or Silver kerberos ticket attack, and Skeleton key attack. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1055](https://attack.mitre.org/techniques/T1055/), [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/), [T1134](https://attack.mitre.org/techniques/T1134/), [T1543](https://attack.mitre.org/techniques/T1543/), [T1547](https://attack.mitre.org/techniques/T1547/), [T1548](https://attack.mitre.org/techniques/T1548/), [T1554](https://attack.mitre.org/techniques/T1554/), [T1556](https://attack.mitre.org/techniques/T1556/), [T1558](https://attack.mitre.org/techniques/T1558/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)kerberos::ptt/)=true OR match_regex(cmd_line, /(?i)kerberos::golden/)=true OR match_regex(cmd_line, /(?i)kerberos::silver/)=true OR match_regex(cmd_line, /(?i)misc::skeleton/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1055 | Process Injection | Defense Evasion, Privilege Escalation | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | +| T1134 | Access Token Manipulation | Defense Evasion, Privilege Escalation | +| T1543 | Create or Modify System Process | Persistence, Privilege Escalation | +| T1547 | Boot or Logon Autostart Execution | Persistence, Privilege Escalation | +| T1548 | Abuse Elevation Control Mechanism | Defense Evasion, Privilege Escalation | +| T1554 | Compromise Client Software Binary | Persistence | +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | +| T1558 | Steal or Forge Kerberos Tickets | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + +* https://adsecurity.org/?p=1275 + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Applying Stolen Credentials via PowerSploit modules +Stolen credentials are applied by methods such as user impersonation, credential injection, spoofing of authentication processes or getting hold of critical accounts. This detection indicates such activities carried out by PowerSploit exploit kit APIs. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1055](https://attack.mitre.org/techniques/T1055/), [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/), [T1134](https://attack.mitre.org/techniques/T1134/), [T1543](https://attack.mitre.org/techniques/T1543/), [T1547](https://attack.mitre.org/techniques/T1547/), [T1548](https://attack.mitre.org/techniques/T1548/), [T1554](https://attack.mitre.org/techniques/T1554/), [T1556](https://attack.mitre.org/techniques/T1556/), [T1558](https://attack.mitre.org/techniques/T1558/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Invoke-CredentialInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-TokenManipulation/)=true OR match_regex(cmd_line, /(?i)Invoke-UserImpersonation/)=true OR match_regex(cmd_line, /(?i)Get-System/)=true OR match_regex(cmd_line, /(?i)Invoke-RevertToSelf/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1055 | Process Injection | Defense Evasion, Privilege Escalation | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | +| T1134 | Access Token Manipulation | Defense Evasion, Privilege Escalation | +| T1543 | Create or Modify System Process | Persistence, Privilege Escalation | +| T1547 | Boot or Logon Autostart Execution | Persistence, Privilege Escalation | +| T1548 | Abuse Elevation Control Mechanism | Defense Evasion, Privilege Escalation | +| T1554 | Compromise Client Software Binary | Persistence | +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | +| T1558 | Steal or Forge Kerberos Tickets | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Assessment of Credential Strength via DSInternals modules +This detection identifies use of DSInternals modules that verify password strength, i.e., identify week accounts that would be easily compromised. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/), [T1087](https://attack.mitre.org/techniques/T1087/), [T1201](https://attack.mitre.org/techniques/T1201/), [T1552](https://attack.mitre.org/techniques/T1552/), [T1555](https://attack.mitre.org/techniques/T1555/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Test-PasswordQuality/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | +| T1087 | Account Discovery | Discovery | +| T1201 | Password Policy Discovery | Discovery | +| T1552 | Unsecured Credentials | Credential Access | +| T1555 | Credentials from Password Stores | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Attempt To Add Certificate To Untrusted Store +Attempt to add a certificate to the certificate store + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1553.004](https://attack.mitre.org/techniques/T1553.004/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=*certutil* (Processes.process=*-addstore*) by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `attempt_to_add_certificate_to_untrusted_store_filter` +``` +#### Associated Analytic Story + +* Disabling Security Tools + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1553.004 | Install Root Certificate | Defense Evasion | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +There may be legitimate reasons for administrators to add a certificate to the untrusted certificate store. In such cases, this will typically be done on a large number of systems. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1553.004/atomic_red_team/windows-sysmon.log + + +_version_: 6 +
+ +--- + +### Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass +Monitor for changes of the ExecutionPolicy in the registry to the values "unrestricted" or "bypass," which allows the execution of malicious scripts. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Registry where Registry.registry_path=*Software\\Microsoft\\Powershell\\1\\ShellIds\\Microsoft.PowerShell* Registry.registry_key_name=ExecutionPolicy (Registry.registry_value_name=Unrestricted OR Registry.registry_value_name=Bypass) by Registry.registry_path Registry.registry_key_name Registry.registry_value_name Registry.dest +| `drop_dm_object_name(Registry)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `attempt_to_set_default_powershell_execution_policy_to_unrestricted_or_bypass_filter` +``` +#### Associated Analytic Story + +* Malicious PowerShell + +* Credential Dumping + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Registry node. You must also be ingesting logs with the fields registry_path, registry_key_name, and registry_value_name from your endpoints. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +Administrators may attempt to change the default execution policy on a system for a variety of reasons. However, setting the policy to "unrestricted" or "bypass" as this search is designed to identify, would be unusual. Hits should be reviewed and investigated as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/powershell_execution_policy/windows-sysmon.log + + +_version_: 6 +
+ +--- + +### Attempt To Stop Security Service +This search looks for attempts to stop security-related services on the endpoint. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.001](https://attack.mitre.org/techniques/T1562.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name = net.exe OR Processes.process_name = sc.exe) Processes.process="* stop *" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|lookup security_services_lookup service as process OUTPUTNEW category, description +| search category=security +| `attempt_to_stop_security_service_filter` +``` +#### Associated Analytic Story + +* Disabling Security Tools + + +#### How To Implement +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. The search is shipped with a lookup file, `security_services.csv`, that can be edited to update the list of services to monitor. This lookup file can be edited directly where it lives in `$SPLUNK_HOME/etc/apps/DA-ESS-ContentUpdate/lookups`, or via the Splunk console. You should add the names of services an attacker might use on the command line and surround with asterisks (*****), so that they work properly when searching the command line. The file should be updated with the names of any services you would like to monitor for attempts to stop the service., + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.001 | Disable or Modify Tools | Defense Evasion | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +None identified. Attempts to disable security-related services should be identified and understood. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Attempted Credential Dump From Registry via Reg exe +Monitor for execution of reg.exe with parameters specifying an export of keys that contain hashed credentials that attackers may try to crack offline. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.002](https://attack.mitre.org/techniques/T1003.002/) +- **Last Updated**: 2019-12-02 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=reg.exe OR Processes.process_name=cmd.exe) Processes.process=*save* (Processes.process=*HKEY_LOCAL_MACHINE\\Security* OR Processes.process=*HKEY_LOCAL_MACHINE\\SAM* OR Processes.process=*HKEY_LOCAL_MACHINE\\System* OR Processes.process=*HKLM\\Security* OR Processes.process=*HKLM\\System* OR Processes.process=*HKLM\\SAM*) by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `attempted_credential_dump_from_registry_via_reg_exe_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.002 | Security Account Manager | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.002/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Attempted Credential Dump From Registry via Reg exe +Monitor for execution of reg.exe with parameters specifying an export of keys that contain hashed credentials that attackers may try to crack offline. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-6-04 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) +| where process_name="cmd.exe" OR process_name="reg.exe" +| where cmd_line != null AND match_regex(cmd_line, /(?i)save\s+/)=true AND ( match_regex(cmd_line, /(?i)HKLM\\Security/)=true OR match_regex(cmd_line, /(?i)HKLM\\SAM/)=true OR match_regex(cmd_line, /(?i)HKLM\\System/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\Security/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\SAM/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\System/)=true ) +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting windows endpoint data that tracks process activity, including parent-child relationships from your endpoints. + +#### Required field + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/splunk/security_content/blob/55a17c65f9f56c2220000b62701765422b46125d/detections/attempted_credential_dump_from_registry_via_reg_exe.yml + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### BCDEdit Failure Recovery Modification +This search looks for flags passed to bcdedit.exe modifications to the built-in Windows error recovery boot configurations. This is typically used by ransomware to prevent recovery. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1490](https://attack.mitre.org/techniques/T1490/) +- **Last Updated**: 2020-12-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = bcdedit.exe Processes.process="*recoveryenabled*" (Processes.process="* no*") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `bcdedit_failure_recovery_modification_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + +* Ransomware + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. Tune based on parent process names. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators may modify the boot configuration. + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1490/T1490.md#atomic-test-4---windows---disable-windows-recovery-console-repair + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Batch File Write to System32 +The search looks for a batch file (.bat) written to the Windows system directory tree. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1204.002](https://attack.mitre.org/techniques/T1204.002/) +- **Last Updated**: 2018-12-14 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name values(Filesystem.user) as user from datamodel=Endpoint.Filesystem by Filesystem.file_path +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| search file_path=*system32* AND file_extension=.bat +| `batch_file_write_to_system32_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + + +#### How To Implement +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1204.002 | Malicious File | Execution | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +It is possible for this search to generate a notable event for a batch file write to a path that includes the string "system32", but is not the actual Windows system directory. As such, you should confirm the path of the batch file identified by the search. In addition, a false positive may be generated by an administrator copying a legitimate batch file in this directory tree. You should confirm that the activity is legitimate and modify the search to add exclusions, as necessary. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1204.002/batch_file_in_system32/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Certutil exe certificate extraction +This search looks for arguments to certutil.exe indicating the manipulation or extraction of Certificate. This certificate can then be used to sign new authentication tokens specially inside Federated environments such as Windows ADFS. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=certutil.exe Processes.process = "* -exportPFX *" by Processes.parent_process Processes.process_name Processes.process Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `certutil_exe_certificate_extraction_filter` +``` +#### Associated Analytic Story + +* Windows Persistence Techniques + +* Cloud Federated Credential Abuse + + +#### How To Implement + + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + + +#### Known False Positives +Unless there are specific use cases, manipulating or exporting certificates using certutil is uncommon. Extraction of certificate has been observed during attacks such as Golden SAML and other campaigns targeting Federated services. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/certutil_exe_certificate_extraction/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Child Processes of Spoolsv exe +This search looks for child processes of spoolsv.exe. This activity is associated with a POC privilege-escalation exploit associated with CVE-2018-8440. Spoolsv.exe is the process associated with the Print Spooler service in Windows and typically runs as SYSTEM. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2020-03-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=spoolsv.exe AND Processes.process_name!=regsvr32.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `child_processes_of_spoolsv_exe_filter` +``` +#### Associated Analytic Story + +* Windows Privilege Escalation + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Update the `children_of_spoolsv_filter` macro to filter out legitimate child processes spawned by spoolsv.exe. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Some legitimate printer-related processes may show up as children of spoolsv.exe. You should confirm that any activity as legitimate and may be added as exclusions in the search. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Clients Connecting to Multiple DNS Servers +This search allows you to identify the endpoints that have connected to more than five DNS servers and made DNS Queries over the time frame of the search. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count, values(DNS.dest) AS dest dc(DNS.dest) as dest_count from datamodel=Network_Resolution where DNS.message_type=QUERY by DNS.src +| `drop_dm_object_name("Network_Resolution")` +|where dest_count > 5 +| `clients_connecting_to_multiple_dns_servers_filter` +``` +#### Associated Analytic Story + +* DNS Hijacking + +* Command and Control + +* Suspicious DNS Traffic + +* Host Redirection + + +#### How To Implement +This search requires that DNS data is being ingested and populating the `Network_Resolution` data model. This data can come from DNS logs or from solutions that parse network traffic for this data, such as Splunk Stream or Bro.\ +This search produces fields (`dest_count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** Distinct DNS Connections, **Field:** dest_count\ +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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +It's possible that an enterprise has more than five DNS servers that are configured in a round-robin rotation. Please customize the search, as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Cloud API Calls From Previously Unseen User Roles +This search looks for new commands from each user role. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-09-04 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where All_Changes.user_type=AssumedRole AND All_Changes.status=success by All_Changes.user, All_Changes.command All_Changes.object +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_api_calls_per_user_role user as user, command as command OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUserApiCall=min(firstTimeSeen) +| where isnull(firstTimeSeenUserApiCall) OR firstTimeSeenUserApiCall > relative_time(now(),"-24h@h") +| table firstTime, user, object, command +|`security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `cloud_api_calls_from_previously_unseen_user_roles_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud User Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud API Calls Per User Role - Initial` to build the initial table of user roles, commands, and times. You must also enable the second baseline search `Previously Seen Cloud API Calls Per User Role - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `cloud_api_calls_from_previously_unseen_user_roles_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_api_calls_from_previously_unseen_user_roles_filter` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Compute Instance Created By Previously Unseen User +This search looks for cloud compute instances created by users who have not created them before. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-08-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object) as dest from datamodel=Change where All_Changes.action=created by All_Changes.user All_Changes.vendor_region +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_compute_creations_by_user user as user OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUser=min(firstTimeSeen) +| where isnull(firstTimeSeenUser) OR firstTimeSeenUser > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count vendor_region +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_by_previously_unseen_user_filter` +``` +#### Associated Analytic Story + +* Cloud Cryptomining + + +#### How To Implement +You must be ingesting the appropriate cloud-infrastructure logs Run the "Previously Seen Cloud Compute Creations By User" support search to create of baseline of previously seen users. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It's possible that a user will start to create compute instances for the first time, for any number of reasons. Verify with the user launching instances that this is the intended behavior. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Compute Instance Created In Previously Unused Region +This search looks at cloud-infrastructure events where an instance is created in any region within the last hour and then compares it to a lookup file of previously seen regions where instances have been created. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2020-09-02 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime latest(_time) as lastTime values(All_Changes.object_id) as dest, count from datamodel=Change where All_Changes.action=created by All_Changes.vendor_region, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_regions vendor_region as vendor_region OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenRegion=min(firstTimeSeen) +| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count , vendor_region +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_in_previously_unused_region_filter` +``` +#### Associated Analytic Story + +* Cloud Cryptomining + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Regions - Initial` to build the initial table of images observed and times. You must also enable the second baseline search `Previously Seen Cloud Regions - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_in_previously_unused_region_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that a user has unknowingly started an instance in a new region. Please verify that this activity is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Compute Instance Created With Previously Unseen Image +This search looks for cloud compute instances being created with previously unseen image IDs. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: +- **Last Updated**: 2018-10-12 + +
+ details + +#### Search +``` + +| tstats count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as dest from datamodel=Change where All_Changes.action=created by All_Changes.Instance_Changes.image_id, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| `drop_dm_object_name("Instance_Changes")` +| where image_id != "unknown" +| lookup previously_seen_cloud_compute_images image_id as image_id OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenImage=min(firstTimeSeen) +| where isnull(firstTimeSeenImage) OR firstTimeSeenImage > relative_time(now(), "-24h@h") +| table firstTime, user, image_id, count, dest +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_with_previously_unseen_image_filter` +``` +#### Associated Analytic Story + +* Cloud Cryptomining + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Compute Images - Initial` to build the initial table of images observed and times. You must also enable the second baseline search `Previously Seen Cloud Compute Images - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_with_previously_unseen_image_filter` macro. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +After a new image is created, the first systems created with that image will cause this alert to fire. Verify that the image being used was created by a legitimate user. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Compute Instance Created With Previously Unseen Instance Type +Find EC2 instances being created with previously unseen instance types. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: +- **Last Updated**: 2020-09-12 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as dest, count from datamodel=Change where All_Changes.action=created by All_Changes.Instance_Changes.instance_type, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| `drop_dm_object_name("Instance_Changes")` +| where instance_type != "unknown" +| lookup previously_seen_cloud_compute_instance_types instance_type as instance_type OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenInstanceType=min(firstTimeSeen) +| where isnull(firstTimeSeenInstanceType) OR firstTimeSeenInstanceType > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count, instance_type +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_with_previously_unseen_instance_type_filter` +``` +#### Associated Analytic Story + +* Cloud Cryptomining + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Compute Instance Types - Initial` to build the initial table of instance types observed and times. You must also enable the second baseline search `Previously Seen Cloud Compute Instance Types - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_with_previously_unseen_instance_type_filter` macro. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that an admin will create a new system using a new instance type that has never been used before. Verify with the creator that they intended to create the system with the new instance type. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Instance Modified By Previously Unseen User +This search looks for cloud instances being modified by users who have not previously modified them. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-29 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as object_id values(All_Changes.command) as command from datamodel=Change where All_Changes.action=modified All_Changes.change_type=EC2 All_Changes.status=success by All_Changes.user +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_instance_modifications_by_user user as user OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUser=min(firstTimeSeen) +| where isnull(firstTimeSeenUser) OR firstTimeSeenUser > relative_time(now(), "-24h@h") +| table firstTime user command object_id count +| `security_content_ctime(firstTime)` +| `cloud_instance_modified_by_previously_unseen_user_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud Instance Activities + + +#### How To Implement +This search has a dependency on other searches to create and update a baseline of users observed to be associated with this activity. The search "Previously Seen Cloud Instance Modifications By User - Update" should be enabled for this detection to properly work. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It's possible that a new user will start to modify EC2 instances when they haven't before for any number of reasons. Verify with the user that is modifying instances that this is the intended behavior. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Network Access Control List Deleted +Enforcing network-access controls is one of the defensive mechanisms used by cloud administrators to restrict access to a cloud instance. After the attacker has gained control of the console by compromising an admin account, they can delete a network ACL and gain access to the instance from anywhere. This search will query the Change datamodel to detect users deleting network ACLs. Deprecated because it's a duplicate + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-09-08 + +
+ details + +#### Search +``` +`cloudtrail` eventName=DeleteNetworkAcl +|rename userIdentity.arn as arn +| stats count min(_time) as firstTime max(_time) as lastTime values(errorMessage) values(errorCode) values(userAgent) values(userIdentity.*) by src userName arn eventName +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `cloud_network_access_control_list_deleted_filter` +``` +#### Associated Analytic Story + +* Cloud Network ACL Activity + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You can also provide additional filtering for this search by customizing the `cloud_network_access_control_list_deleted_filter` macro. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that a user has legitimately deleted a network ACL. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Cloud Provisioning Activity From Previously Unseen City +This search looks for cloud provisioning activities from previously unseen cities. Provisioning activities are defined broadly as any event that runs or creates something. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-10-09 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(City) +| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenCity=min(firstTimeSeen) +| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, City, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_city_filter` +| `security_content_ctime(firstTime)` +``` +#### Associated Analytic Story + +* Suspicious Cloud Provisioning Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_city_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Provisioning Activity From Previously Unseen Country +This search looks for cloud provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that runs or creates something. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-10-09 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(Country) +| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenCountry=min(firstTimeSeen) +| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h") +| table firstTime, src, Country, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_country_filter` +| `security_content_ctime(firstTime)` +``` +#### Associated Analytic Story + +* Suspicious Cloud Provisioning Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_country_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Provisioning Activity From Previously Unseen IP Address +This search looks for cloud provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that runs or creates something. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-08-16 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenSrc=min(firstTimeSeen) +| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, user, object_id, command +| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter` +| `security_content_ctime(firstTime)` +``` +#### Associated Analytic Story + +* Suspicious Cloud Provisioning Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_ip_address_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Cloud Provisioning Activity From Previously Unseen Region +This search looks for cloud provisioning activities from previously unseen regions. Provisioning activities are defined broadly as any event that runs or creates something. + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-08-16 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(Region) +| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenRegion=min(firstTimeSeen) +| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, Region, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_region_filter` +| `security_content_ctime(firstTime)` +``` +#### Associated Analytic Story + +* Suspicious Cloud Provisioning Activities + + +#### How To Implement +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_region_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Common Ransomware Extensions +The search looks for file modifications with extensions commonly used by Ransomware + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1485](https://attack.mitre.org/techniques/T1485/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| `ransomware_extensions` +| `common_ransomware_extensions_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* Ryuk Ransonware + +* Ransomware + + +#### How To Implement +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data.\ +This search produces fields (`query`,`query_length`,`count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** Name, **Field:** Name\ +1. \ +1. **Label:** File Extension, **Field:** file_extension\ +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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1485 | Data Destruction | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It is possible for a legitimate file with these extensions to be created. If this is a true ransomware attack, there will be a large number of files created with these extensions. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1485/ransomware_extensions/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Common Ransomware Notes +The search looks for files created with names matching those typically used in ransomware notes that tell the victim how to get their data back. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1485](https://attack.mitre.org/techniques/T1485/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `ransomware_notes` +| `common_ransomware_notes_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* Ransomware + +* Ryuk Ransomware + + +#### How To Implement +You must be ingesting data that records file-system activity from your hosts to populate the Endpoint Filesystem data-model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1485 | Data Destruction | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that a legitimate file could be created with the same name used by ransomware note files. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1485/ransomware_notes/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Create Remote Thread into LSASS +Detect remote thread creation into LSASS consistent with credential dumping. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-12-06 + +
+ details + +#### Search +``` +`sysmon` EventID=8 TargetImage=*lsass.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, EventCode, TargetImage, TargetProcessId +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `create_remote_thread_into_lsass_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +This search needs Sysmon Logs with a Sysmon configuration, which includes EventCode 8 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Other tools can access LSASS for legitimate reasons and generate an event. In these cases, tweaking the search may help eliminate noise. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Create local admin accounts using net exe +This search looks for the creation of local administrator accounts using net.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1136.001](https://attack.mitre.org/techniques/T1136.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.user) as user values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=net.exe OR Processes.process_name=net1.exe) AND (Processes.process=*localgroup* OR Processes.process=*/add* OR Processes.process=*user*) by Processes.process Processes.process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`create_local_admin_accounts_using_net_exe_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.001 | Local Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators often leverage net.exe to create admin accounts. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Create or delete windows shares using net exe +This search looks for the creation or deletion of hidden shares using net.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1070.005](https://attack.mitre.org/techniques/T1070.005/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.user) as user values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processs.process_name=net.exe OR Processes.process_name=net1.exe) by Processes.process Processes.process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search process=*share* +| `create_or_delete_windows_shares_using_net_exe_filter` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070.005 | Network Share Connection Removal | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators often leverage net.exe to create or delete network shares. You should verify that the activity was intentional and is legitimate. + +#### Reference + +* https://attack.mitre.org/techniques/T1070/005 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.005/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Creation of Shadow Copy +Monitor for signs that Vssadmin or Wmic has been used to create a shadow copy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2019-12-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=vssadmin.exe Processes.process=*create* Processes.process=*shadow*) OR (Processes.process_name=wmic.exe Processes.process=*shadowcopy* Processes.process=*create*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_shadow_copy_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legitimate administrator usage of Vssadmin or Wmic will create false positives. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Creation of Shadow Copy with wmic and powershell +This search detects the use of wmic and Powershell to create a shadow copy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2019-12-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wmic* OR Processes.process_name=powershell* Processes.process=*shadowcopy* Processes.process=*create* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_shadow_copy_with_wmic_and_powershell_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legtimate administrator usage of wmic to create a shadow copy. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Creation of lsass Dump with Taskmgr +Detect the hands on keyboard behavior of Windows Task Manager creating a prcoess dump of lsass.exe. Upon this behavior occurring, a file write/modification will occur in the users profile under \AppData\Local\Temp. The dump file, lsass.dmp, cannot be renamed, however if the dump occurs more than once, it will be named lsass (2).dmp. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2020-02-03 + +
+ details + +#### Search +``` +`sysmon` EventID=11 process_name=taskmgr.exe TargetFilename=*lsass*.dmp +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, object_category, process_name, TargetFilename +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_lsass_dump_with_taskmgr_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +This search requires Sysmon Logs and a Sysmon configuration, which includes EventCode 11 for detecting file create of lsass.dmp. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators can create memory dumps for debugging purposes, but memory dumps of the LSASS process would be unusual. + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-5---dump-lsassexe-memory-using-windows-task-manager + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Credential Dumping via Copy Command from Shadow Copy +This search detects credential dumping using copy command from a shadow copy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2019-12-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe (Processes.process=*\\system32\\config\\sam* OR Processes.process=*\\system32\\config\\security* OR Processes.process=*\\system32\\config\\system* OR Processes.process=*\\windows\\ntds\\ntds.dit*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `credential_dumping_via_copy_command_from_shadow_copy_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Credential Dumping via Symlink to Shadow Copy +This search detects the creation of a symlink to a shadow copy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2019-12-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe Processes.process=*mklink* Processes.process=*HarddiskVolumeShadowCopy* by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `credential_dumping_via_symlink_to_shadow_copy_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of FGDump and CacheDump with s option +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. FGdump is a newer version of pwdump tool that extracts NTLM and LanMan password hashes from Windows. Cachedump is a publicly-available tool that extracts cached password hashes from a system's registry. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND process_name != null AND parent_process_name != null AND match_regex(parent_process_name, /(?i)System32\\services.exe/)=true AND match_regex(process_name, /(?i)cachedump\d{0,2}.exe/)=true AND match_regex(process_path, /(?i)\\Temp/)=true AND match_regex(cmd_line, /(?i)\-s/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of FGDump and CacheDump with v option +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. FGdump is a newer version of pwdump tool that extracts NTLM and LanMan password hashes from Windows. Cachedump is a publicly-available tool that extracts cached password hashes from a system's registry. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null) +| where cmd_line != null AND process_name != null AND process_path != null AND match_regex(process_name, /(?i)cachedump\d{0,2}.exe/)=true AND match_regex(process_path, /(?i)\\Temp/)=true AND match_regex(cmd_line, /(?i)\-v/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of Lazagne command line options +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. LaZagne is a tool that extracts various kinds of credentials from a local computer, including account passwords, domain passwords, browser passwords, etc. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/), [T1555](https://attack.mitre.org/techniques/T1555/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND match_regex(cmd_line, /(?i)all\s+\-oA\s+\-output/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | +| T1555 | Credentials from Password Stores | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of use of DSInternals credential conversion modules +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. DSInternals is a collection of PowerShell modules commonly employed in exploits. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)ConvertFrom-ADManagedPasswordBlob/)=true OR match_regex(cmd_line, /(?i)ConvertFrom-GPPrefPassword/)=true OR match_regex(cmd_line, /(?i)ConvertFrom-UnicodePassword/)=true OR match_regex(cmd_line, /(?i)ConvertTo-GPPrefPassword/)=true OR match_regex(cmd_line, /(?i)ConvertTo-KerberosKey/)=true OR match_regex(cmd_line, /(?i)ConvertTo-LMHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-NTHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-OrgIdHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-UnicodePassword/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of use of DSInternals modules +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. DSInternals is a collection of PowerShell modules commonly employed in exploits. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ADDBBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-ADDBDomainController/)=true OR match_regex(cmd_line, /(?i)Get-ADDBKdsRootKey/)=true OR match_regex(cmd_line, /(?i)Get-ADDBSchemaAttribute/)=true OR match_regex(cmd_line, /(?i)Get-ADKeyCredential/)=true OR match_regex(cmd_line, /(?i)Get-ADReplAccount/)=true OR match_regex(cmd_line, /(?i)Get-ADReplBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-ADSIAccount/)=true OR match_regex(cmd_line, /(?i)Get-AzureADUserEx/)=true OR match_regex(cmd_line, /(?i)Get-BootKey/)=true OR match_regex(cmd_line, /(?i)Get-LsaBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-LsaPolicyInformation/)=true OR match_regex(cmd_line, /(?i)Get-SamPasswordPolicy/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of use of Mimikatz modules +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Mimikatz is a collection of tools and modules commonly employed in Windows exploits. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)CRYPTO::Certificates/)=true OR match_regex(cmd_line, /(?i)CRYPTO::keys/)=true OR match_regex(cmd_line, /(?i)kerberos::list/)=true OR match_regex(cmd_line, /(?i)kerberos::tgt/)=true OR match_regex(cmd_line, /(?i)lsadump::sam/)=true OR match_regex(cmd_line, /(?i)lsadump::secrets/)=true OR match_regex(cmd_line, /(?i)lsadump::cache/)=true OR match_regex(cmd_line, /(?i)lsadump::lsa/)=true OR match_regex(cmd_line, /(?i)lsadump::trust/)=true OR match_regex(cmd_line, /(?i)lsadump::backupkeys/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction indicative of use of PowerSploit modules +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. PowerSploit is a collection of Microsoft PowerShell modules commonly employed in exploits. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ApplicationHost/)=true OR match_regex(cmd_line, /(?i)Get-CachedGPPPassword/)=true OR match_regex(cmd_line, /(?i)Get-GPPAutologon/)=true OR match_regex(cmd_line, /(?i)Get-GPPPassword/)=true OR match_regex(cmd_line, /(?i)Get-RegistryAutoLogon/)=true OR match_regex(cmd_line, /(?i)Get-SiteListPassword/)=true OR match_regex(cmd_line, /(?i)Get-SPNTicket/)=true OR match_regex(cmd_line, /(?i)Request-SPNTicket/)=true OR match_regex(cmd_line, /(?i)Get-VaultCredential/)=true OR match_regex(cmd_line, /(?i)Invoke-Kerberoast/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction native Microsoft debuggers peek into the kernel +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Native Microsoft debuggers, such as kd, ntkd, livekd and windbg, can be leveraged to read credential material directly from memory and process dumps. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND parent_process_name != null AND process_name != null AND ( match_regex(parent_process_name, /(?i)ntkd\.exe/)=true OR match_regex(parent_process_name, /(?i)livekd\.exe/)=true ) AND match_regex(process_name, /(?i)conhost\.exe/)=true AND match_regex(cmd_line, /(?i)0xffffffff/)=true AND match_regex(cmd_line, /(?i)\-ForceV1/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, using debuggers this way may be indicative of developers analyzing crash dumps of their code. Note, even for developers this is an unusual way of working on code - debuggers are mostly used to step through code, not analyze its crash dumps. + +#### Reference + +* https://medium.com/@clermont1050/covid-19-cyber-infection-c615ead7c29 + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction native Microsoft debuggers via z command line option +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Native Microsoft debuggers, such as kd, ntkd, livekd and windbg, can be leveraged to read credential material directly from memory and process dumps. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null) +| where cmd_line != null AND process_name != null AND ( match_regex(process_name, /^(?i)ntkd\.exe/)=true OR match_regex(process_name, /^(?i)kd\.exe/)=true ) AND match_regex(cmd_line, /(?i)\-z\s+/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, using debuggers this way may be indicative of developers analyzing crash dumps of their code. Note, even for developers this is an unusual way of working on code - debuggers are mostly used to step through code, not analyze its crash dumps. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Credential Extraction via Get-ADDBAccount module present in PowerSploit and DSInternals +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. PowerSploit and DSInternals are common exploit APIs offering PowerShell modules for various exploits of Windows and Active Directory environments. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/) +- **Last Updated**: 2020-10-18 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND match_regex(cmd_line, /(?i)Get-ADDBAccount/)=true AND match_regex(cmd_line, /(?i)\-dbpath[\s;:\.\ +|]+/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003 | OS Credential Dumping | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### DNS Query Length Outliers - MLTK +This search allows you to identify DNS requests that are unusually large for the record type being requested in your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2020-01-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as start_time max(_time) as end_time values(DNS.src) as src values(DNS.dest) as dest from datamodel=Network_Resolution by DNS.query DNS.record_type +| search DNS.record_type=* +| `drop_dm_object_name(DNS)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval query_length = len(query) +| apply dns_query_pdfmodel threshold=0.01 +| rename "IsOutlier(query_length)" as isOutlier +| search isOutlier > 0 +| sort -query_length +| table start_time end_time query record_type count src dest query_length +| `dns_query_length_outliers___mltk_filter` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + +* Suspicious DNS Traffic + +* Command and Control + + +#### How To Implement +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. In addition, the Machine Learning Toolkit (MLTK) version 4.2 or greater must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of DNS Query Length - MLTK" must be executed before this detection search, because it builds a machine-learning (ML) model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment.\ +This search produces fields (`query`,`query_length`,`count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** DNS Query, **Field:** query\ +1. \ +1. **Label:** DNS Query Length, **Field:** query_length\ +1. \ +1. **Label:** Number of events, **Field:** count\ +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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.004 | DNS | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +If you are seeing more results than desired, you may consider reducing the value for threshold in the search. You should also periodically re-run the support search to re-build the ML model on the latest data. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### DNS Query Length With High Standard Deviation +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. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/) +- **Last Updated**: 2021-01-18 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution 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` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + +* Suspicious DNS Traffic + +* Command and Control + + +#### How To Implement +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +It's possible there can be long domain names that are legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1048.003/long_dns_queries/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### DNS Query Requests Resolved by Unauthorized DNS Servers +This search will detect DNS requests resolved by unauthorized DNS servers. Legitimate DNS servers should be identified in the Enterprise Security Assets and Identity Framework. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where DNS.dest_category != dns_server AND DNS.src_category != dns_server by DNS.src DNS.dest +| `drop_dm_object_name("DNS")` +| `dns_query_requests_resolved_by_unauthorized_dns_servers_filter` +``` +#### Associated Analytic Story + +* DNS Hijacking + +* Command and Control + +* Suspicious DNS Traffic + +* Host Redirection + + +#### How To Implement +To successfully implement this search you will need to ensure that DNS data is populating the Network_Resolution data model. It also requires that your DNS servers are identified correctly in the Assets and Identity table of Enterprise Security. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.004 | DNS | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +Legitimate DNS activity can be detected in this search. Investigate, verify and update the list of authorized DNS servers as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### DNS record changed +The search takes the DNS records and their answers results of the discovered_dns_records lookup and finds if any records have changed by searching DNS response from the Network_Resolution datamodel across the last day. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| inputlookup discovered_dns_records +| rename answer as discovered_answer +| join domain[ +|tstats `security_content_summariesonly` count values(DNS.record_type) as type, values(DNS.answer) as current_answer values(DNS.src) as src from datamodel=Network_Resolution where DNS.message_type=RESPONSE DNS.answer!="unknown" DNS.answer!="" by DNS.query +| rename DNS.query as query +| where query!="unknown" +| rex field=query "(?\w+\.\w+?)(?:$ +|/)"] +| makemv delim=" " answer +| makemv delim=" " type +| sort -count +| table count,src,domain,type,query,current_answer,discovered_answer +| makemv current_answer +| mvexpand current_answer +| makemv discovered_answer +| eval n=mvfind(discovered_answer, current_answer) +| where isnull(n) +| `dns_record_changed_filter` +``` +#### Associated Analytic Story + +* DNS Hijacking + + +#### How To Implement +To successfully implement this search you will need to ensure that DNS data is populating the `Network_Resolution` data model. It also requires that the `discover_dns_record` lookup table be populated by the included support search "Discover DNS record". \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called "DNS Hijack Enrichment" can be configured to run when any results are found by this detection search. The playbook takes in the DNS record changed and uses Geoip, whois, Censys and PassiveTotal to detect if DNS issuers changed. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook Link:`https://my.phantom.us/4.2/playbook/dns-hijack-enrichment/`).\ + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.004 | DNS | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +Legitimate DNS changes can be detected in this search. Investigate, verify and update the list of provided current answers for the domains in question as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Deleting Shadow Copies +The vssadmin.exe utility is used to interact with the Volume Shadow Copy Service. Wmic is an interface to the Windows Management Instrumentation. This search looks for either of these tools being used to delete shadow copies. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1490](https://attack.mitre.org/techniques/T1490/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=vssadmin.exe OR Processes.process_name=wmic.exe) Processes.process=*delete* Processes.process=*shadow* by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `deleting_shadow_copies_filter` +``` +#### Associated Analytic Story + +* Windows Log Manipulation + +* SamSam Ransomware + +* Ransomware + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +vssadmin.exe and wmic.exe are standard applications shipped with modern versions of windows. They may be used by administrators to legitimately delete old backup copies, although this is typically rare. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Detect API activity from users without MFA +This search looks for CloudTrail events where a user logged into the AWS account, is making API calls and has not enabled Multi Factor authentication. Multi factor authentication adds a layer of security by forcing the users to type a unique authentication code from an approved authentication device when they access AWS websites or services. AWS Best Practices recommend that you enable MFA for privileged IAM users. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-05-17 + +
+ details + +#### Search +``` +`cloudtrail` userIdentity.sessionContext.attributes.mfaAuthenticated=false +| search NOT [ +| inputlookup aws_service_accounts +| fields identity +| rename identity as user] +| stats count min(_time) as firstTime max(_time) as lastTime values(eventName) as eventName by userIdentity.arn userIdentity.type user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_api_activity_from_users_without_mfa_filter` +``` +#### Associated Analytic Story + +* AWS User Monitoring + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Leverage the support search `Create a list of approved AWS service accounts`: run it once every 30 days to create a list of service accounts and validate them.\ +This search produces fields (`eventName`,`userIdentity.type`,`userIdentity.arn`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** AWS User ARN, **Field:** userIdentity.arn\ +1. \ +1. **Label:** AWS User Type, **Field:** userIdentity.type\ +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` + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +Many service accounts configured within an AWS infrastructure do not have multi factor authentication enabled. Please ignore the service accounts, if triggered and instead add them to the aws_service_accounts.csv file to fine tune the detection. It is also possible that the search detects users in your environment using Single Sign-On systems, since the MFA is not handled by AWS. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect ARP Poisoning +By enabling Dynamic ARP Inspection as a Layer 2 Security measure on the organization's network devices, we will be able to detect ARP Poisoning attacks in the Infrastructure. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1557.002](https://attack.mitre.org/techniques/T1557.002/) +- **Last Updated**: 2020-08-11 + +
+ details + +#### Search +``` +`cisco_networks` facility="PM" mnemonic="ERR_DISABLE" disable_cause="arp-inspection" +| eval src_interface=src_int_prefix_long+src_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime count BY host src_interface +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_arp_poisoning_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with DHCP Snooping (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/security/configuration_guide/b_sec_152ex_2960-x_cg/b_sec_152ex_2960-x_cg_chapter_01101.html) and Dynamic ARP Inspection (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_2_e/security/configuration_guide/b_sec_1522e_2960x_cg/b_sec_1522e_2960x_cg_chapter_01111.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1557.002 | ARP Cache Poisoning | Collection, Credential Access | + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +This search might be prone to high false positives if DHCP Snooping or ARP inspection has been incorrectly configured, or if a device normally sends many ARP packets (unlikely). + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect AWS API Activities From Unapproved Accounts +This search looks for successful CloudTrail activity by user accounts that are not listed in the identity table or `aws_service_accounts.csv`. It returns event names and count, as well as the first and last time a specific user or service is detected, grouped by users. Deprecated because managing this list can be quite hard. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` errorCode=success +| rename userName as identity +| search NOT [ +| inputlookup identity_lookup_expanded +| fields identity] +| search NOT [ +| inputlookup aws_service_accounts +| fields identity] +| rename identity as user +| stats count min(_time) as firstTime max(_time) as lastTime values(eventName) as eventName by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_aws_api_activities_from_unapproved_accounts_filter` +``` +#### Associated Analytic Story + +* AWS User Monitoring + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You must also populate the `identity_lookup_expanded` lookup shipped with the Asset and Identity framework to be able to look up users in your identity table in Enterprise Security (ES). Leverage the support search called "Create a list of approved AWS service accounts": run it once every 30 days to create and validate a list of service accounts.\ +This search produces fields (`eventName`,`firstTime`,`lastTime`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** First Time, **Field:** firstTime\ +1. \ +1. **Label:** Last Time, **Field:** lastTime\ +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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's likely that you'll find activity detected by users/service accounts that are not listed in the `identity_lookup_expanded` or ` aws_service_accounts.csv` file. If the user is a legitimate service account, update the `aws_service_accounts.csv` table with that entry. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect AWS Console Login by New User +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: +- **Last Updated**: 2020-05-28 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user +| `drop_dm_object_name(Authentication)` +| inputlookup append=t previously_seen_users_console_logins +| stats min(firstTime) as firstTime max(lastTime) as lastTime by user +| eval userStatus=if(firstTime >=relative_time(now(),"-24h@h"), "First Time Logging into AWS Console", "Previously Seen User") +|where userStatus="First Time Logging into AWS Console" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_aws_console_login_by_new_user_filter` +``` +#### Associated Analytic Story + +* Suspicious Cloud Authentication Activities + + +#### How To Implement +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Detect AWS Console Login by User from New City +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2020-10-07 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user City +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user City +| fields earliestseen user City] +| eval userCity=if(firstTime >= relative_time(now(), "-24h@h"), "New City","Previously Seen City") +| eval userStatus=if(earliestseen >= relative_time(now(), "-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userCity = "New City" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user City userStatus userCity +| `detect_aws_console_login_by_user_from_new_city_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS Login Activities + +* Suspicious Cloud Authentication Activities + + +#### How To Implement +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_city_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Detect AWS Console Login by User from New Country +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2020-10-07 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user Country +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user Country +| fields earliestseen user Country] +| eval userCountry=if(firstTime >= relative_time(now(), "-24h@h"), "New Country","Previously Seen Country") +| eval userStatus=if(earliestseen >= relative_time(now(),"-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userCountry = "New Country" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user Country userStatus userCountry +| `detect_aws_console_login_by_user_from_new_country_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS Login Activities + +* Suspicious Cloud Authentication Activities + + +#### How To Implement +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_country_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Detect AWS Console Login by User from New Region +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +- **Product**: Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2020-10-07 + +
+ details + +#### Search +``` + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user Region +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user Region +| fields earliestseen user Region] +| eval userRegion=if(firstTime >= relative_time(now(), "-24h@h"), "New Region","Previously Seen Region") +| eval userStatus=if(earliestseen >= relative_time(now(), "-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userRegion = "New Region" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user Region userStatus userRegion +| `detect_aws_console_login_by_user_from_new_region_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS Login Activities + +* Suspicious Cloud Authentication Activities + + +#### How To Implement +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_region_filter` macro. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +_version_: 1 +
+ +--- + +### Detect Activity Related to Pass the Hash Attacks +This search looks for specific authentication events from the Windows Security Event logs to detect potential attempts at using the Pass-the-Hash technique. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1550.002](https://attack.mitre.org/techniques/T1550.002/) +- **Last Updated**: 2020-10-15 + +
+ details + +#### Search +``` +`wineventlog_security` EventCode=4624 (Logon_Type=3 Logon_Process=NtLmSsp WorkstationName=WORKSTATION NOT AccountName="ANONYMOUS LOGON") OR (Logon_Type=9 Logon_Process=seclogo) +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by EventCode, Logon_Type, WorkstationName, user, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_activity_related_to_pass_the_hash_attacks_filter` +``` +#### Associated Analytic Story + +* Lateral Movement + + +#### How To Implement +To successfully implement this search, you must ingest your Windows Security Event logs and leverage the latest TA for Windows. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1550.002 | Pass the Hash | Defense Evasion, Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legitimate logon activity by authorized NTLM systems may be detected by this search. Please investigate as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1550.002/atomic_red_team/windows-security.log + + +_version_: 5 +
+ +--- + +### Detect Baron Samedit CVE-2021-3156 +This search detects the heap-based buffer overflow of sudoedit + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2021-01-27 + +
+ details + +#### Search +``` +`linux_hosts` +| search "sudoedit -s \\" +| `detect_baron_samedit_cve_2021_3156_filter` +``` +#### Associated Analytic Story + +* Baron Samedit CVE-2021-3156 + + +#### How To Implement +Splunk Universal Forwarder running on Linux systems, capturing logs from the /var/log directory. The vulnerability is exposed when a non privledged user tries passing in a single \ character at the end of the command while using the shell and edit flags. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Baron Samedit CVE-2021-3156 Segfault +This search detects the heap-based buffer overflow of sudoedit + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2021-01-29 + +
+ details + +#### Search +``` +`linux_hosts` +| search sudoedit segfault +| stats count min(_time) as firstTime max(_time) as lastTime by host +| search count > 5 +| `detect_baron_samedit_cve_2021_3156_segfault_filter` +``` +#### Associated Analytic Story + +* Baron Samedit CVE-2021-3156 + + +#### How To Implement +Splunk Universal Forwarder running on Linux systems (tested on Centos and Ubuntu), where segfaults are being logged. This also captures instances where the exploit has been compiled into a binary. The detection looks for greater than 5 instances of sudoedit combined with segfault over your search time period on a single host + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +If sudoedit is throwing segfaults for other reasons this will pick those up too. + +#### Reference + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Baron Samedit CVE-2021-3156 via OSQuery +This search detects the heap-based buffer overflow of sudoedit + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2021-01-28 + +
+ details + +#### Search +``` +`osquery_process` +| search "columns.cmdline"="sudoedit -s \\*" +| `detect_baron_samedit_cve_2021_3156_via_osquery_filter` +``` +#### Associated Analytic Story + +* Baron Samedit CVE-2021-3156 + + +#### How To Implement +OSQuery installed and configured to pick up process events (info at https://osquery.io) as well as using the Splunk OSQuery Add-on https://splunkbase.splunk.com/app/4402. The vulnerability is exposed when a non privledged user tries passing in a single \ character at the end of the command while using the shell and edit flags. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Computer Changed with Anonymous Account +This search looks for Event Code 4742 (Computer Change) or EventCode 4624 (An account was successfully logged on) with an anonymous account. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1210](https://attack.mitre.org/techniques/T1210/) +- **Last Updated**: 2020-09-18 + +
+ details + +#### Search +``` +`wineventlog_security` EventCode=4624 OR EventCode=4742 TargetUserName="ANONYMOUS LOGON" LogonType=3 +| stats count values(host) as host, values(TargetDomainName) as Domain, values(user) as user +| `detect_computer_changed_with_anonymous_account_filter` +``` +#### Associated Analytic Story + +* Detect Zerologon Attack + + +#### How To Implement +This search requires audit computer account management to be enabled on the system in order to generate Event ID 4742. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Event Logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1210 | Exploitation of Remote Services | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None thus far found + +#### Reference + +* https://www.lares.com/blog/from-lares-labs-defensive-guidance-for-zerologon-cve-2020-1472/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Credential Dumping through LSASS access +This search looks for reading lsass memory consistent with credential dumping. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-12-03 + +
+ details + +#### Search +``` +`sysmon` EventCode=10 TargetImage=*lsass.exe (GrantedAccess=0x1010 OR GrantedAccess=0x1410) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, SourceImage, SourceProcessId, TargetImage, TargetProcessId, EventCode, GrantedAccess +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_credential_dumping_through_lsass_access_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + +* Detect Zerologon Attack + + +#### How To Implement +This search needs Sysmon Logs and a sysmon configuration, which includes EventCode 10 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The activity may be legitimate. Other tools can access lsass for legitimate reasons, and it's possible this event could be generated in those cases. In these cases, false positives should be fairly obvious and you may need to tweak the search to eliminate noise. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Detect DNS requests to Phishing Sites leveraging EvilGinx2 +This search looks for DNS requests for phishing domains that are leveraging EvilGinx tools to mimic websites. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1566.003](https://attack.mitre.org/techniques/T1566.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(DNS.answer) as answer from datamodel=Network_Resolution.DNS by DNS.dest DNS.src DNS.query host +| `drop_dm_object_name(DNS)` +| rex field=query ".*?(?[^./:]+\.(\S{2,3} +|\S{2,3}.\S{2,3}))$" +| stats count values(query) as query by domain dest src answer +| search `evilginx_phishlets_amazon` OR `evilginx_phishlets_facebook` OR `evilginx_phishlets_github` OR `evilginx_phishlets_0365` OR `evilginx_phishlets_outlook` OR `evilginx_phishlets_aws` OR `evilginx_phishlets_google` +| search NOT [ inputlookup legit_domains.csv +| fields domain] +| join domain type=outer [ +| tstats count `security_content_summariesonly` values(Web.url) as url from datamodel=Web.Web by Web.dest Web.site +| rename "Web.*" as * +| rex field=site ".*?(?[^./:]+\.(\S{2,3} +|\S{2,3}.\S{2,3}))$" +| table dest domain url] +| table count src dest query answer domain url +| `detect_dns_requests_to_phishing_sites_leveraging_evilginx2_filter` +``` +#### Associated Analytic Story + +* Common Phishing Frameworks + + +#### How To Implement +You need to ingest data from your DNS logs in the Network_Resolution datamodel. Specifically you must ingest the domain that is being queried and the IP of the host originating the request. Ideally, you should also be ingesting the answer to the query and the query type. This approach allows you to also create your own localized passive DNS capability which can aid you in future investigations. You will have to add legitimate domain names to the `legit_domains.csv` file shipped with the app. \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called `Lets Encrypt Domain Investigate` can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook link:`https://my.phantom.us/4.2/playbook/lets-encrypt-domain-investigate/`).\ + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.003 | Spearphishing via Service | Initial Access | + + +#### Kill Chain Phase + +* Delivery + +* Command and Control + + +#### Known False Positives +If a known good domain is not listed in the legit_domains.csv file, then the search could give you false postives. Please update that lookup file to filter out DNS requests to legitimate domains. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect Dump LSASS Memory using comsvcs +This search detects the memory of lsass.exe being dumped for offline credential theft attack. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2020-09-15 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval tenant=ucast(map_get(input_event, "_tenant"), "string", null), machine=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process=lower(ucast(map_get(input_event, "process"), "string", null)) +| where process_name LIKE "%rundll32.exe%" AND match_regex(process, /(?i)comsvcs.dll[,\s]+MiniDump/)=true +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(machine), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including Windows command line logging. You can see how we test this with [Event Code 4688](https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4688a) on the [attack_range](https://github.com/splunk/attack_range/blob/develop/ansible/roles/windows_common/tasks/windows-enable-4688-cmd-line-audit.yml). + +#### Required field + +* process_name + +* _tenant + +* _time + +* dest_device_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Excessive Account Lockouts From Endpoint +This search identifies endpoints that have caused a relatively high number of account lockouts in a short period. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.002](https://attack.mitre.org/techniques/T1078.002/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(All_Changes.user) as user from datamodel=Change.All_Changes where nodename=All_Changes.Account_Management All_Changes.result="lockout" by All_Changes.dest All_Changes.result +|`drop_dm_object_name("All_Changes")` +|`drop_dm_object_name("Account_Management")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search count > 5 +| `detect_excessive_account_lockouts_from_endpoint_filter` +``` +#### Associated Analytic Story + +* Account Monitoring and Controls + + +#### How To Implement +You must ingest your Windows security event logs in the `Change` datamodel under the nodename is `Account_Management`, for this search to execute successfully. Please consider updating the cron schedule and the count of lockouts you want to monitor, according to your environment. \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called "Excessive Account Lockouts Enrichment and Response" can be configured to run when any results are found by this detection search. The Playbook executes the Contextual and Investigative searches in this Story, conducts additional information gathering on Windows endpoints, and takes a response action to shut down the affected endpoint. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook Link:`https://my.phantom.us/4.1/playbook/excessive-account-lockouts-enrichment-and-response/`).\ + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.002 | Domain Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It's possible that a widely used system, such as a kiosk, could cause a large number of account lockouts. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-system.log + + +_version_: 5 +
+ +--- + +### Detect Excessive User Account Lockouts +This search detects user accounts that have been locked out a relatively high number of times in a short period. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.003](https://attack.mitre.org/techniques/T1078.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Change.All_Changes where nodename=All_Changes.Account_Management All_Changes.result="lockout" by All_Changes.user All_Changes.result +|`drop_dm_object_name("All_Changes")` +|`drop_dm_object_name("Account_Management")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search count > 5 +| `detect_excessive_user_account_lockouts_filter` +``` +#### Associated Analytic Story + +* Account Monitoring and Controls + + +#### How To Implement +ou must ingest your Windows security event logs in the `Change` datamodel under the nodename is `Account_Management`, for this search to execute successfully. Please consider updating the cron schedule and the count of lockouts you want to monitor, according to your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.003 | Local Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that a legitimate user is experiencing an issue causing multiple account login failures leading to lockouts. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-system.log + + +_version_: 3 +
+ +--- + +### Detect F5 TMUI RCE CVE-2020-5902 +This search detects remote code exploit attempts on F5 BIG-IP, BIG-IQ, and Traffix SDC devices + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1190](https://attack.mitre.org/techniques/T1190/) +- **Last Updated**: 2020-08-02 + +
+ details + +#### Search +``` +`f5_bigip_rogue` +| regex _raw="(hsqldb; +|.*\\.\\.;.*)" +| search `detect_f5_tmui_rce_cve_2020_5902_filter` +``` +#### Associated Analytic Story + +* F5 TMUI RCE CVE-2020-5902 + + +#### How To Implement +To consistently detect exploit attempts on F5 devices using the vulnerabilities contained within CVE-2020-5902 it is recommended to ingest logs via syslog. As many BIG-IP devices will have SSL enabled on their management interfaces, detections via wire data may not pick anything up unless you are decrypting SSL traffic in order to inspect it. I am using a regex string from a Cloudflare mitigation technique to try and always catch the offending string (..;), along with the other exploit of using (hsqldb;). + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1190 | Exploit Public-Facing Application | Initial Access | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://www.ptsecurity.com/ww-en/about/news/f5-fixes-critical-vulnerability-discovered-by-positive-technologies-in-big-ip-application-delivery-controller/ + +* https://support.f5.com/csp/article/K52145254 + +* https://blog.cloudflare.com/cve-2020-5902-helping-to-protect-against-the-f5-tmui-rce-vulnerability/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect GCP Storage access from a new IP +This search looks at GCP Storage bucket-access logs and detects new or previously unseen remote IP addresses that have successfully accessed a GCP Storage bucket. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2020-08-10 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` +| multikv +| rename sc_status_ as status +| rename cs_object_ as bucket_name +| rename c_ip_ as remote_ip +| rename cs_uri_ as request_uri +| rename cs_method_ as operation +| search status="\"200\"" +| stats earliest(_time) as firstTime latest(_time) as lastTime by bucket_name remote_ip operation request_uri +| table firstTime, lastTime, bucket_name, remote_ip, operation, request_uri +| inputlookup append=t previously_seen_gcp_storage_access_from_remote_ip.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by bucket_name remote_ip operation request_uri +| outputlookup previously_seen_gcp_storage_access_from_remote_ip.csv +| eval newIP=if(firstTime >= relative_time(now(),"-70m@m"), 1, 0) +| where newIP=1 +| eval first_time=strftime(firstTime,"%m/%d/%y %H:%M:%S") +| eval last_time=strftime(lastTime,"%m/%d/%y %H:%M:%S") +| table first_time last_time bucket_name remote_ip operation request_uri +| `detect_gcp_storage_access_from_a_new_ip_filter` +``` +#### Associated Analytic Story + +* Suspicious GCP Storage Activities + + +#### How To Implement +This search relies on the Splunk Add-on for Google Cloud Platform, setting up a Cloud Pub/Sub input, along with the relevant GCP PubSub topics and logging sink to capture GCP Storage Bucket events (https://cloud.google.com/logging/docs/routing/overview). In order to capture public GCP Storage Bucket access logs, you must also enable storage bucket logging to your PubSub Topic as per https://cloud.google.com/storage/docs/access-logs. These logs are deposited into the nominated Storage Bucket on an hourly basis and typically show up by 15 minutes past the hour. It is recommended to configure any saved searches or correlation searches in Enterprise Security to run on an hourly basis at 30 minutes past the hour (cron definition of 30 * * * *). A lookup table (previously_seen_gcp_storage_access_from_remote_ip.csv) stores the previously seen access requests, and is used by this search to determine any newly seen IP addresses accessing the Storage Buckets. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +GCP Storage buckets can be accessed from any IP (if the ACLs are open to allow it), as long as it can make a successful connection. This will be a false postive, since the search is looking for a new IP within the past two hours. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect HTML Help Renamed +The following analytic identifies a renamed instance of hh.exe (HTML Help) executing a Compiled HTML Help (CHM). This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Validate it is the legitimate version of hh.exe by reviewing the PE metadata. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.001](https://attack.mitre.org/techniques/T1218.001/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Search +``` +`sysmon` EventID=1 OriginalFileName=HH.exe NOT process_name=hh.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_renamed_filter` +``` +#### Associated Analytic Story + +* Suspicious Compiled HTML Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Tune and filter known instances where renamed hh.exe may be used. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.001 | Compiled HTML File | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely a renamed instance of hh.exe will be used legitimately, filter as needed. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect HTML Help Spawn Child Process +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) that spawns a child process. This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Review child process events and investigate further. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.001](https://attack.mitre.org/techniques/T1218.001/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=hh.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_spawn_child_process_filter` +``` +#### Associated Analytic Story + +* Suspicious Compiled HTML Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.001 | Compiled HTML File | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications (ex. web browsers) may spawn a child process. Filter as needed. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect HTML Help URL in Command Line +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) file from a remote url. This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Review reputation of remote IP and domain. Some instances, it is worth decompiling the .chm file to review its original contents. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.001](https://attack.mitre.org/techniques/T1218.001/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=hh.exe Processes.process=*http* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_url_in_command_line_filter` +``` +#### Associated Analytic Story + +* Suspicious Compiled HTML Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.001 | Compiled HTML File | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may retrieve a CHM remotely, filter as needed. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://blog.sevagas.com/?Hacking-around-HTA-files + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect HTML Help Using InfoTech Storage Handlers +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) file using InfoTech Storage Handlers. This particular technique will load Windows script code from a compiled help file, using InfoTech Storage Handlers. itss.dll will load upon execution. Three InfoTech Storage handlers are supported - ms-its, its, mk:@MSITStore. ITSS may be used to launch a specific html/htm file from within a CHM file. CHM files may contain nearly any file type embedded. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.001](https://attack.mitre.org/techniques/T1218.001/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=hh.exe Processes.process IN ("*its:*", "*mk:@MSITStore:*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_using_infotech_storage_handlers_filter` +``` +#### Associated Analytic Story + +* Suspicious Compiled HTML Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.001 | Compiled HTML File | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It is rare to see instances of InfoTech Storage Handlers being used, but it does happen in some legitimate instances. Filter as needed. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://www.kb.cert.org/vuls/id/851869 + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect IPv6 Network Infrastructure Threats +By enabling IPv6 First Hop Security as a Layer 2 Security measure on the organization's network devices, we will be able to detect various attacks such as packet forging in the Infrastructure. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1557.002](https://attack.mitre.org/techniques/T1557.002/) +- **Last Updated**: 2020-10-28 + +
+ details + +#### Search +``` +`cisco_networks` facility="SISF" mnemonic IN ("IP_THEFT","MAC_THEFT","MAC_AND_IP_THEFT","PAK_DROP") +| eval src_interface=src_int_prefix_long+src_int_suffix +| eval dest_interface=dest_int_prefix_long+dest_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime values(src_mac) AS src_mac values(src_vlan) AS src_vlan values(mnemonic) AS mnemonic values(vendor_explanation) AS vendor_explanation values(src_ip) AS src_ip values(dest_ip) AS dest_ip values(dest_interface) AS dest_interface values(action) AS action count BY host src_interface +| table host src_interface dest_interface src_mac src_ip dest_ip src_vlan mnemonic vendor_explanation action count +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_ipv6_network_infrastructure_threats_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with one or more First Hop Security measures such as RA Guard, DHCP Guard and/or device tracking. See References for more information. The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1557.002 | ARP Cache Poisoning | Collection, Credential Access | + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +None currently known + +#### Reference + +* https://www.ciscolive.com/c/dam/r/ciscolive/emea/docs/2019/pdf/BRKSEC-3200.pdf + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-ra-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-snooping.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-dad-proxy.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-nd-mcast-supp.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-dhcpv6-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-src-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ipv6-dest-guard.html + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Kerberoasting +This search detects a potential kerberoasting attack via service principal name requests + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1558.003](https://attack.mitre.org/techniques/T1558.003/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval _time=map_get(input_event, "_time"), EventCode=map_get(input_event, "event_code"), TicketOptions=map_get(input_event, "ticket_options"), TicketEncryptionType=map_get(input_event, "ticket_encryption_type"), ServiceName=map_get(input_event, "service_name"), ServiceID=map_get(input_event, "service_id") +| where EventCode="4769" AND TicketOptions="0x40810000" AND TicketEncryptionType="0x17" +| first_time_event input_columns=["EventCode","TicketOptions","TicketEncryptionType","ServiceName","ServiceID"] +| where first_time_EventCode_TicketOptions_TicketEncryptionType_ServiceName_ServiceID +| eval start_time=_time, end_time=_time, body="TBD", entities="TBD" +| select start_time, end_time, entities, body +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +The test data is converted from Windows Security Event logs generated from Attach Range simulation and used in SPL search and extended to SPL2 + +#### Required field + +* service_name + +* _time + +* event_code + +* ticket_encryption_type + +* service_id + +* ticket_options + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1558.003 | Kerberoasting | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Older systems that support kerberos RC4 by default NetApp may generate false positives + +#### Reference + +* Initial ESCU implementation by Jose Hernandez and Patrick Bareiss + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Large Outbound ICMP Packets +This search looks for outbound ICMP packets with a packet size larger than 1,000 bytes. Various threat actors have been known to use ICMP as a command and control channel for their attack infrastructure. Large ICMP packets from an endpoint to a remote host may be indicative of this activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1095](https://attack.mitre.org/techniques/T1095/) +- **Last Updated**: 2018-06-01 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime latest(_time) as lastTime values(All_Traffic.action) values(All_Traffic.bytes) from datamodel=Network_Traffic where All_Traffic.action !=blocked All_Traffic.dest_category !=internal (All_Traffic.protocol=icmp OR All_Traffic.transport=icmp) All_Traffic.bytes > 1000 by All_Traffic.src_ip All_Traffic.dest_ip +| `drop_dm_object_name("All_Traffic")` +| search ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_large_outbound_icmp_packets_filter` +``` +#### Associated Analytic Story + +* Command and Control + + +#### How To Implement +In order to run this search effectively, we highly recommend that you leverage the Assets and Identity framework. It is important that you have a good understanding of how your network segments are designed and that you are able to distinguish internal from external address space. Add a category named `internal` to the CIDRs that host the company's assets in the `assets_by_cidr.csv` lookup file, which is located in `$SPLUNK_HOME/etc/apps/SA-IdentityManagement/lookups/`. More information on updating this lookup can be found here: https://docs.splunk.com/Documentation/ES/5.0.0/Admin/Addassetandidentitydata. This search also requires you to be ingesting your network traffic and populating the Network_Traffic data model + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1095 | Non-Application Layer Protocol | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +ICMP packets are used in a variety of ways to help troubleshoot networking issues and ensure the proper flow of traffic. As such, it is possible that a large ICMP packet could be perfectly legitimate. If large ICMP packets are associated with command and control traffic, there will typically be a large number of these packets observed over time. If the search is providing a large number of false positives, you can modify the macro `detect_large_outbound_icmp_packets_filter` to adjust the byte threshold or add specific IP addresses to an allow list. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect Long DNS TXT Record Response +This search is used to detect attempts to use DNS tunneling, by calculating the length of responses to DNS TXT queries. Endpoints using DNS as a method of transmission for data exfiltration, command and control, or evasion of security controls can often be detected by noting unusually large volumes of DNS traffic. Deprecated because this detection should focus on DNS queries instead of DNS responses. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Resolution where DNS.message_type=response AND DNS.record_type=TXT by DNS.src DNS.dest DNS.answer DNS.record_type +| `drop_dm_object_name("DNS")` +| eval anslen=len(answer) +| search anslen>100 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename src as "Source IP", dest as "Destination IP", answer as "DNS Answer" anslen as "Answer Length" record_type as "DNS Record Type" firstTime as "First Time" lastTime as "Last Time" count as Count +| table "Source IP" "Destination IP" "DNS Answer" "DNS Record Type" "Answer Length" Count "First Time" "Last Time" +| `detect_long_dns_txt_record_response_filter` +``` +#### Associated Analytic Story + +* Suspicious DNS Traffic + +* Command and Control + + +#### How To Implement +To successfully implement this search you need to ingest data from your DNS logs, or monitor DNS traffic using Stream, Bro or something similar. Specifically, this query requires that the DNS data model is populated with information regarding the DNS record type that is being returned as well as the data in the answer section of the protocol. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +It's possible that legitimate TXT record responses can be long enough to trigger this search. You can modify the packet threshold for this search to help mitigate false positives. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect MSHTA Url in Command Line +This analytic identifies when Microsoft HTML Application Host (mshta.exe) utility is used to make remote http connections. Adversaries may use mshta.exe to proxy the download and execution of remote .hta files. The analytic identifies command line arguments of http and https being used. This technique is commonly used by malicious software to bypass preventative controls. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "rundll32.exe" and its parent process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=mshta.exe (Processes.process="*http://*" OR Processes.process="*https://*") by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_url_in_command_line_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +It is possible legitimate applications may perform this behavior and will need to be filtered. + +#### Reference + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Mimikatz Using Loaded Images +This search looks for reading loaded Images unique to credential dumping with Mimikatz. Deprecated because mimikatz libraries changed and very noisy sysmon Event Code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-12-03 + +
+ details + +#### Search +``` +`sysmon` EventCode=7 +| stats values(ImageLoaded) as ImageLoaded values(ProcessId) as ProcessId by Computer, Image +| search ImageLoaded=*WinSCard.dll ImageLoaded=*cryptdll.dll ImageLoaded=*hid.dll ImageLoaded=*samlib.dll ImageLoaded=*vaultcli.dll +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mimikatz_using_loaded_images_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + +* Detect Zerologon Attack + +* Cloud Federated Credential Abuse + + +#### How To Implement +This search needs Sysmon Logs and a sysmon configuration, which includes EventCode 7 with powershell.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Other tools can import the same DLLs. These tools should be part of a whitelist. + +#### Reference + +* https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for.html + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Mimikatz Via PowerShell And EventCode 4703 +This search looks for PowerShell requesting privileges consistent with credential dumping. Deprecated, looks like things changed from a logging perspective. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-02-27 + +
+ details + +#### Search +``` +`wineventlog_security` signature_id=4703 Process_Name=*powershell.exe +| rex field=Message "Enabled Privileges:\s+(?\w+)\s+Disabled Privileges:" +| where privs="SeDebugPrivilege" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, Process_Name, privs, Process_ID, Message +| rename privs as "Enabled Privilege" +| rename Process_Name as process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mimikatz_via_powershell_and_eventcode_4703_filter` +``` +#### Associated Analytic Story + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must be ingesting Windows Security logs. You must also enable the account change auditing here: http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata. Additionally, this search requires you to enable your Group Management Audit Logs in your Local Windows Security Policy and to be ingesting those logs. More information on how to enable them can be found here: http://whatevernetworks.com/auditing-group-membership-changes-in-active-directory/. Finally, please make sure that the local administrator group name is "Administrators" to be able to look for the right group membership changes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The activity may be legitimate. PowerShell is often used by administrators to perform various tasks, and it's possible this event could be generated in those cases. In these cases, false positives should be fairly obvious and you may need to tweak the search to eliminate noise. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect New Local Admin account +This search looks for newly created accounts that have been elevated to local administrators. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1136.001](https://attack.mitre.org/techniques/T1136.001/) +- **Last Updated**: 2020-07-08 + +
+ details + +#### Search +``` +`wineventlog_security` EventCode=4720 OR (EventCode=4732 Group_Name=Administrators) +| transaction member_id connected=false maxspan=180m +| rename member_id as user +| stats count min(_time) as firstTime max(_time) as lastTime by user dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_local_admin_account_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting Windows event logs using the Splunk Windows TA and collecting event code 4720 and 4732 + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.001 | Local Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Known False Positives +The activity may be legitimate. For this reason, it's best to verify the account with an administrator and ask whether there was a valid service request for the account creation. If your local administrator group name is not "Administrators", this search may generate an excessive number of false positives + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Detect New Login Attempts to Routers +The search queries the authentication logs for assets that are categorized as routers in the ES Assets and Identity Framework, to identify connections that have not been seen before in the last 30 days. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: +- **Last Updated**: 2017-09-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count earliest(_time) as earliest latest(_time) as latest from datamodel=Authentication where Authentication.dest_category=router by Authentication.dest Authentication.user +| eval isOutlier=if(earliest >= relative_time(now(), "-30d@d"), 1, 0) +| where isOutlier=1 +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `drop_dm_object_name("Authentication")` +| `detect_new_login_attempts_to_routers_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +To successfully implement this search, you must ensure the network router devices are categorized as "router" in the Assets and identity table. You must also populate the Authentication data model with logs related to users authenticating to routing infrastructure. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legitimate router connections may appear as new connections + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect New Open GCP Storage Buckets +This search looks for GCP PubSub events where a user has created an open/public GCP Storage bucket. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2020-08-05 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.resource.type=gcs_bucket data.protoPayload.methodName=storage.setIamPermissions +| spath output=action path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.action +| spath output=user path=data.protoPayload.authenticationInfo.principalEmail +| spath output=location path=data.protoPayload.resourceLocation.currentLocations{} +| spath output=src path=data.protoPayload.requestMetadata.callerIp +| spath output=bucketName path=data.protoPayload.resourceName +| spath output=role path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.role +| spath output=member path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.member +| search (member=allUsers AND action=ADD) +| table _time, bucketName, src, user, location, action, role, member +| search `detect_new_open_gcp_storage_buckets_filter` +``` +#### Associated Analytic Story + +* Suspicious GCP Storage Activities + + +#### How To Implement +This search relies on the Splunk Add-on for Google Cloud Platform, setting up a Cloud Pub/Sub input, along with the relevant GCP PubSub topics and logging sink to capture GCP Storage Bucket events (https://cloud.google.com/logging/docs/routing/overview). + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +While this search has no known false positives, it is possible that a GCP admin has legitimately created a public bucket for a specific purpose. That said, GCP strongly advises against granting full control to the "allUsers" group. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect New Open S3 Buckets over AWS CLI +This search looks for CloudTrail events where a user has created an open/public S3 bucket over the aws cli. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`cloudtrail` eventSource="s3.amazonaws.com" eventName=PutBucketAcl OR requestParameters.accessControlList.x-amz-grant-read-acp IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-write IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-write-acp IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-full-control IN ("*AuthenticatedUsers","*AllUsers") +| rename requestParameters.bucketName AS bucketName +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId userAgent bucketName requestParameters.accessControlList.x-amz-grant-read requestParameters.accessControlList.x-amz-grant-read-acp requestParameters.accessControlList.x-amz-grant-write requestParameters.accessControlList.x-amz-grant-write-acp requestParameters.accessControlList.x-amz-grant-full-control +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_open_s3_buckets_over_aws_cli_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS S3 Activities + + +#### How To Implement + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +While this search has no known false positives, it is possible that an AWS admin has legitimately created a public bucket for a specific purpose. That said, AWS strongly advises against granting full control to the "All Users" group. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1530/aws_s3_public_bucket/aws_cloudtrail_events.json + + +_version_: 1 +
+ +--- + +### Detect New Open S3 buckets +This search looks for CloudTrail events where a user has created an open/public S3 bucket. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`cloudtrail` eventSource=s3.amazonaws.com eventName=PutBucketAcl +| rex field=_raw "(?{.+})" +| spath input=json_field output=grantees path=requestParameters.AccessControlPolicy.AccessControlList.Grant{} +| search grantees=* +| mvexpand grantees +| spath input=grantees output=uri path=Grantee.URI +| spath input=grantees output=permission path=Permission +| search uri IN ("http://acs.amazonaws.com/groups/global/AllUsers","http://acs.amazonaws.com/groups/global/AuthenticatedUsers") +| search permission IN ("READ","READ_ACP","WRITE","WRITE_ACP","FULL_CONTROL") +| rename requestParameters.bucketName AS bucketName +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId userAgent uri permission bucketName +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_open_s3_buckets_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS S3 Activities + + +#### How To Implement +You must install the AWS App for Splunk. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +While this search has no known false positives, it is possible that an AWS admin has legitimately created a public bucket for a specific purpose. That said, AWS strongly advises against granting full control to the "All Users" group. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1530/aws_s3_public_bucket/aws_cloudtrail_events.json + + +_version_: 2 +
+ +--- + +### Detect Oulook exe writing a zip file +This search looks for execution of process `outlook.exe` where the process is writing a `.zip` file to the disk. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1566.001](https://attack.mitre.org/techniques/T1566.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_name=outlook.exe OR Processes.process_name=explorer.exe by _time span=5m Processes.parent_process_id Processes.process_id Processes.dest Processes.process_name Processes.parent_process_name Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename process_id as malicious_id +| rename parent_process_id as outlook_id +| join malicious_id type=inner[ +| tstats `security_content_summariesonly` count values(Filesystem.file_path) as file_path values(Filesystem.file_name) as file_name FROM datamodel=Endpoint.Filesystem where (Filesystem.file_path=*zip* OR Filesystem.file_name=*.lnk ) AND (Filesystem.file_path=C:\\Users* OR Filesystem.file_path=*Local\\Temp*) by _time span=5m Filesystem.process_id Filesystem.file_hash Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename process_id as malicious_id +| fields malicious_id outlook_id dest file_path file_name file_hash count file_id] +| table firstTime lastTime user malicious_id outlook_id process_name parent_process_name file_name file_path +| where file_name != "" +| `detect_oulook_exe_writing_a__zip_file_filter` +``` +#### Associated Analytic Story + +* Phishing Payloads + + +#### How To Implement +You must be ingesting data that records filesystem and process activity from your hosts to populate the Endpoint data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.001 | Spearphishing Attachment | Initial Access | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +It is not uncommon for outlook to write legitimate zip files to the disk. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Detect Outbound SMB Traffic +This search looks for outbound SMB connections made by hosts within your network to the Internet. SMB traffic is used for Windows file-sharing activity. One of the techniques often used by attackers involves retrieving the credential hash using an SMB request made to a compromised server controlled by the threat actor. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1071.002](https://attack.mitre.org/techniques/T1071.002/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` earliest(_time) as start_time latest(_time) as end_time values(All_Traffic.action) as action values(All_Traffic.app) as app values(All_Traffic.dest_ip) as dest_ip values(All_Traffic.dest_port) as dest_port values(sourcetype) as sourcetype count from datamodel=Network_Traffic where ((All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app="smb") AND NOT (All_Traffic.action="blocked" OR All_Traffic.dest_category="internal" OR All_Traffic.dest_ip=10.0.0.0/8 OR All_Traffic.dest_ip=172.16.0.0/12 OR All_Traffic.dest_ip=192.168.0.0/16 OR All_Traffic.dest_ip=100.64.0.0/10)) by All_Traffic.src_ip +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(start_time)` +| `security_content_ctime(end_time)` +| `detect_outbound_smb_traffic_filter` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + +* DHS Report TA18-074A + +* Sunburst Malware + + +#### How To Implement +In order to run this search effectively, we highly recommend that you leverage the Assets and Identity framework. It is important that you have good understanding of how your network segments are designed, and be able to distinguish internal from external address space. Add a category named `internal` to the CIDRs that host the companys assets in `assets_by_cidr.csv` lookup file, which is located in `$SPLUNK_HOME/etc/apps/SA-IdentityManagement/lookups/`. More information on updating this lookup can be found here: https://docs.splunk.com/Documentation/ES/5.0.0/Admin/Addassetandidentitydata. This search also requires you to be ingesting your network traffic and populating the Network_Traffic data model + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.002 | File Transfer Protocols | Command and Control | + + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Known False Positives +It is likely that the outbound Server Message Block (SMB) traffic is legitimate, if the company's internal networks are not well-defined in the Assets and Identity Framework. Categorize the internal CIDR blocks as `internal` in the lookup file to avoid creating notable events for traffic destined to those CIDR blocks. Any other network connection that is going out to the Internet should be investigated and blocked. Best practices suggest preventing external communications of all SMB versions and related protocols at the network boundary. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Detect Pass the Hash +This search looks for specific authentication events from the Windows Security Event logs to detect potential attempts using Pass-the-Hash technique. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1550.002](https://attack.mitre.org/techniques/T1550.002/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval _time=map_get(input_event, "_time"), EventCode=map_get(input_event, "event_code"), LogonType=map_get(input_event, "logon_type"), LogonProcess=map_get(input_event, "logon_process"), ComputerName=map_get(input_event, "dest_ip_primary_artifact"), AccountName=map_get(input_event, "dest_user_primary_artifact") +| where (LogonType="3" AND LogonProcess="NtLmSsp" AND AccountName IS NOT NULL) OR (LogonType="9" AND LogonProcess="seclogo") +| first_time_event input_columns=["EventCode","LogonProcess","ComputerName"] +| where first_time_EventCode_LogonProcess_ComputerName +| eval start_time=_time, end_time=_time, body="TBD", entities="TBD" +| select start_time, end_time, entities, body +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +The test data is converted from Windows Security Event logs generated from Attach Range simulation and used in SPL search and extended to SPL2 + +#### Required field + +* logon_process + +* dest_user_primary_artifact + +* _time + +* event_code + +* dest_ip_primary_artifact + +* logon_type + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1550.002 | Pass the Hash | Defense Evasion, Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legitimate logon activity by authorized NTLM systems may be detected by this search. Please investigate as appropriate. + +#### Reference + +* Initial ESCU implementation by Bhavin Patel and Patrick Bareiss + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Path Interception By Creation Of program exe +The detection Detect Path Interception By Creation Of program exe is detecting the abuse of unquoted service paths, which is a popular technique for privilege escalation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1574.009](https://attack.mitre.org/techniques/T1574.009/) +- **Last Updated**: 2020-07-03 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=services.exe by Processes.user Processes.process_name Processes.process Processes.dest index +| `drop_dm_object_name(Processes)` +| rex field=process "^.*?\\\\(?[^\\\\]*\.(?:exe +|bat +|com +|ps1))" +| eval process_name = lower(process_name) +| eval service_process = lower(service_process) +| where process_name != service_process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_path_interception_by_creation_of_program_exe_filter` +``` +#### Associated Analytic Story + +* Windows Persistence Techniques + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1574.009 | Path Interception by Unquoted Path | Defense Evasion, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + +* https://medium.com/@SumitVerma101/windows-privilege-escalation-part-1-unquoted-service-path-c7a011a8d8ae + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1574.009/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Detect Port Security Violation +By enabling Port Security on a Cisco switch you can restrict input to an interface by limiting and identifying MAC addresses of the workstations that are allowed to access the port. When you assign secure MAC addresses to a secure port, the port does not forward packets with source addresses outside the group of defined addresses. If you limit the number of secure MAC addresses to one and assign a single secure MAC address, the workstation attached to that port is assured the full bandwidth of the port. If a port is configured as a secure port and the maximum number of secure MAC addresses is reached, when the MAC address of a workstation attempting to access the port is different from any of the identified secure MAC addresses, a security violation occurs. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1557.002](https://attack.mitre.org/techniques/T1557.002/) +- **Last Updated**: 2020-10-28 + +
+ details + +#### Search +``` +`cisco_networks` (facility="PM" mnemonic="ERR_DISABLE" disable_cause="psecure-violation") OR (facility="PORT_SECURITY" mnemonic="PSECURE_VIOLATION" OR mnemonic="PSECURE_VIOLATION_VLAN") +| eval src_interface=src_int_prefix_long+src_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime values(disable_cause) AS disable_cause values(src_mac) AS src_mac values(src_vlan) AS src_vlan values(action) AS action count by host src_interface +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_port_security_violation_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with Port Security and Error Disable for this to work (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/port_sec.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1557.002 | ARP Cache Poisoning | Collection, Credential Access | + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + +* Exploitation + +* Actions on Objectives + + +#### Known False Positives +This search might be prone to high false positives if you have malfunctioning devices connected to your ethernet ports or if end users periodically connect physical devices to the network. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Prohibited Applications Spawning cmd exe +This search looks for executions of cmd.exe spawned by a process that is often abused by attackers and that does not typically launch cmd.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.003](https://attack.mitre.org/techniques/T1059.003/) +- **Last Updated**: 2020-11-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe by Processes.parent_process_name Processes.process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|search [`prohibited_apps_launching_cmd`] +| `detect_prohibited_applications_spawning_cmd_exe_filter` +``` +#### Associated Analytic Story + +* Suspicious Command-Line Executions + +* Suspicious MSHTA Activity + +* Suspicious Zoom Child Processes + +* Sunburst Malware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts and populates the Endpoint data model with the resultant dataset. This search includes a lookup file, `prohibited_apps_launching_cmd.csv`, that contains a list of processes that should not be spawning cmd.exe. You can modify this lookup to better suit your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +There are circumstances where an application may legitimately execute and interact with the Windows command-line interface. Investigate and modify the lookup file, as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.003/powershell_spawn_cmd/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Detect Prohibited Applications Spawning cmd exe +This search looks for executions of cmd.exe spawned by a process that is often abused by attackers and that does not typically launch cmd.exe. This is a SPL2 implementation of the rule `Detect Prohibited Applications Spawning cmd.exe` by @bpatel. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1059](https://attack.mitre.org/techniques/T1059/) +- **Last Updated**: 2020-7-13 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval process_name=ucast(map_get(input_event, "process_name"), "string", null), parent_process=lower(ucast(map_get(input_event, "parent_process_name"), "string", null)), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) + +| where process_name="cmd.exe" +| rex field=parent_process "(?[^\\\\]+)$" +| where field0="winword.exe" OR field0="excel.exe" OR field0="outlook.exe" OR field0="powerpnt.exe" OR field0="visio.exe" OR field0="mspub.exe" OR field0="acrobat.exe" OR field0="acrord32.exe" OR field0="chrome.exe" OR field0="iexplore.exe" OR field0="opera.exe" OR field0="firefox.exe" OR field0="java.exe" OR field0="powershell.exe" + +| eval start_time=timestamp, end_time=timestamp, entities=mvappend(dest_device_id, dest_user_id), body="TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting sysmon logs. This search has been modified to process raw sysmon data from attack_range's nxlogs on DSP. + +#### Required field + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059 | Command and Scripting Interpreter | Execution | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +There are circumstances where an application may legitimately execute and interact with the Windows command-line interface. Investigate and modify the lookup file, as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect PsExec With accepteula Flag +This search looks for events where `PsExec.exe` is run with the `accepteula` flag in the command line. PsExec is a built-in Windows utility that enables you to execute processes on other systems. It is fully interactive for console applications. This tool is widely used for launching interactive command prompts on remote systems. Threat actors leverage this extensively for executing code on compromised systems. If an attacker is running PsExec for the first time, they will be prompted to accept the end-user license agreement (EULA), which can be passed as the argument `accepteula` within the command line. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/) +- **Last Updated**: 2020-11-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*psexec* Processes.process=*accepteula* by Processes.process_name Processes.dest Processes.parent_process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_psexec_with_accepteula_flag_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators can leverage PsExec for accessing remote systems and might pass `accepteula` as an argument if they are running this tool for the first time. However, it is not likely that you'd see multiple occurrences of this event on a machine + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1021.002/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Detect Rare Executables +This search will return a table of rare processes, the names of the systems running them, and the users who initiated each process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2020-03-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.dest) as dest values(Processes.user) as user min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.process_name +| rename Processes.process_name as process +| rex field=user "(?.*)\\\\(?.*)" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats count from datamodel=Endpoint.Processes by Processes.process_name +| rare Processes.process_name limit=30 +| rename Processes.process_name as process +| `filter_rare_process_allow_list` +| table process ] +| `detect_rare_executables_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Unusual Processes + +* Cloud Federated Credential Abuse + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts and populating the endpoint data model with the resultant dataset. The macro `filter_rare_process_allow_list` searches two lookup files for allowed processes. These consist of `rare_process_allow_list_default.csv` and `rare_process_allow_list_local.csv`. To add your own processes to the allow list, add them to `rare_process_allow_list_local.csv`. If you wish to remove an entry from the default lookup file, you will have to modify the macro itself to set the allow_list value for that process to false. You can modify the limit parameter and search scheduling to better suit your environment. + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Some legitimate processes may be only rarely executed in your environment. As these are identified, update `rare_process_allow_list_local.csv` to filter them out of your search results. + +#### Reference + + +#### Test Dataset + + +_version_: 5 +
+ +--- + +### Detect Regasm Spawning a Process +The following analytic identifies regasm.exe spawning a process. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. Spawning of a child process is rare from either process and should be investigated further. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=regasm.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_spawning_a_process_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regasm.exe or regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regasm with Network Connection +The following analytic identifies regasm.exe with a network connection to a public IP address, exluding private IP space. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. By contacting a remote command and control server, the adversary will have the ability to escalate privileges and complete the objectives. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. Review the reputation of the remote IP or domain and block as needed. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-16 + +
+ details + +#### Search +``` +`sysmon` EventID=3 dest_ip!=10.0.0.0/12 dest_ip!=172.16.0.0/12 dest_ip!=192.168.0.0/16 process_name=regasm.exe +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, process_name, src_ip, dest_host, dest_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_with_network_connection_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regasm.exe with a network connection may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regasm with no Command Line Arguments +The following analytic identifies regasm.exe with no command line arguments. This particular behavior occurs when another process injects into regasm.exe, no command line arguments will be present. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-12 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (process_name=regasm.exe OR OriginalFileName=RegAsm.exe) +| regex CommandLine="(regasm\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_with_no_command_line_arguments_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regasm.exe or may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regsvcs Spawning a Process +The following analytic identifies regsvcs.exe spawning a process. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. Spawning of a child process is rare from either process and should be investigated further. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=regsvcs.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_spawning_a_process_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regasm.exe or regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regsvcs with Network Connection +The following analytic identifies Regsvcs.exe with a network connection to a public IP address, exluding private IP space. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. By contacting a remote command and control server, the adversary will have the ability to escalate privileges and complete the objectives. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. Review the reputation of the remote IP or domain and block as needed. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-16 + +
+ details + +#### Search +``` +`sysmon` EventID=3 dest_ip!=10.0.0.0/12 dest_ip!=172.16.0.0/12 dest_ip!=192.168.0.0/16 process_name=regsvcs.exe +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, process_name, src_ip, dest_host, dest_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_with_network_connection_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regsvcs with No Command Line Arguments +The following analytic identifies regsvcs.exe with no command line arguments. This particular behavior occurs when another process injects into regsvcs.exe, no command line arguments will be present. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-12 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (process_name=regsvcs.exe OR OriginalFileName=RegSvcs.exe) +| regex CommandLine="(regsvcs\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_with_no_command_line_arguments_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvcs Regasm Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, limited instances of regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Regsvr32 Application Control Bypass +Adversaries may abuse Regsvr32.exe to proxy execution of malicious code. Regsvr32.exe is a command-line program used to register and unregister object linking and embedding controls, including dynamic link libraries (DLLs), on Windows systems. Regsvr32.exe is also a Microsoft signed binary.This variation of the technique is often referred to as a "Squiblydoo" attack. \ +Upon investigating, look for network connections to remote destinations (internal or external). Be cautious to modify the query to look for "scrobj.dll", the ".dll" is not required to load scrobj. "scrobj.dll" will be loaded by "regsvr32.exe" upon execution. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.010](https://attack.mitre.org/techniques/T1218.010/) +- **Last Updated**: 2021-01-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=regsvr32.exe OR Processes.process_name!=regsvr32.exe) Processes.process=*scrobj* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvr32_application_control_bypass_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvr32 Activity + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Tune the query by modifying/removing the !=regsv32.exe. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.010 | Regsvr32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Limited false positives related to third party software registering .DLL's. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + +* https://support.microsoft.com/en-us/topic/how-to-use-the-regsvr32-tool-and-troubleshoot-regsvr32-error-messages-a98d960a-7392-e6fe-d90a-3f4e0cb543e5 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.010/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Rogue DHCP Server +By enabling DHCP Snooping as a Layer 2 Security measure on the organization's network devices, we will be able to detect unauthorized DHCP servers handing out DHCP leases to devices on the network (Man in the Middle attack). + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1557](https://attack.mitre.org/techniques/T1557/) +- **Last Updated**: 2020-08-11 + +
+ details + +#### Search +``` +`cisco_networks` facility="DHCP_SNOOPING" mnemonic="DHCP_SNOOPING_UNTRUSTED_PORT" +| stats min(_time) AS firstTime max(_time) AS lastTime count values(message_type) AS message_type values(src_mac) AS src_mac BY host +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_rogue_dhcp_server_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with DHCP Snooping enabled (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/security/configuration_guide/b_sec_152ex_2960-x_cg/b_sec_152ex_2960-x_cg_chapter_01101.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1557 | Man-in-the-Middle | Collection, Credential Access | + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +This search might be prone to high false positives if DHCP Snooping has been incorrectly configured or in the unlikely event that the DHCP server has been moved to another network interface. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Rundll32 Application Control Bypass - advpack +The following analytic identifies rundll32.exe loading advpack.dll and ieadvpack.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-04 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*advpack* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___advpack_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use advpack.dll or ieadvpack.dll, triggering a false positive. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Advpack/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Rundll32 Application Control Bypass - setupapi +The following analytic identifies rundll32.exe loading setupapi.dll and iesetupapi.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-04 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*setupapi* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___setupapi_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use setupapi triggering a false positive. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Setupapi/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Rundll32 Application Control Bypass - syssetup +The following analytic identifies rundll32.exe loading syssetup.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-04 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*syssetup* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___syssetup_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use syssetup.dll, triggering a false positive. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Syssetup/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect Rundll32 Inline HTA Execution +The following analytic identifies "rundll32.exe" execution with inline protocol handlers. "JavaScript", "VBScript", and "About" are the only supported options when invoking HTA content directly on the command-line. This type of behavior is commonly observed with fileless malware or application whitelisting bypass techniques. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "rundll32.exe" and its parent process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe (Processes.process=*vbscript* OR Processes.process=*javascript* OR Processes.process=*about*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_inline_hta_execution_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +#### Reference + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect S3 access from a new IP +This search looks at S3 bucket-access logs and detects new or previously unseen remote IP addresses that have successfully accessed an S3 bucket. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2018-06-28 + +
+ details + +#### Search +``` +`aws_s3_accesslogs` http_status=200 [search `aws_s3_accesslogs` http_status=200 +| stats earliest(_time) as firstTime latest(_time) as lastTime by bucket_name remote_ip +| inputlookup append=t previously_seen_S3_access_from_remote_ip.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by bucket_name remote_ip +| outputlookup previously_seen_S3_access_from_remote_ip.csv +| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newIP=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table bucket_name remote_ip] +| iplocation remote_ip +|rename remote_ip as src_ip +| table _time bucket_name src_ip City Country operation request_uri +| `detect_s3_access_from_a_new_ip_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS S3 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your S3 access logs' inputs. This search works best when you run the "Previously Seen S3 Bucket Access by Remote IP" support search once to create a history of previously seen remote IPs and bucket names. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +S3 buckets can be accessed from any IP, as long as it can make a successful connection. This will be a false postive, since the search is looking for a new IP within the past hour + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect SNICat SNI Exfiltration +This search looks for commands that the SNICat tool uses in the TLS SNI field. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1041](https://attack.mitre.org/techniques/T1041/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Search +``` +`zeek_ssl` +| rex field=server_name "(?(LIST +|LS +|SIZE +|LD +|CB +|CD +|EX +|ALIVE +|EXIT +|WHERE +|finito)-[A-Za-z0-9]{16}\.)" +| stats count by src_ip dest_ip server_name snicat +| where count>0 +| table src_ip dest_ip server_name snicat +| `detect_snicat_sni_exfiltration_filter` +``` +#### Associated Analytic Story + +* Data Exfiltration + + +#### How To Implement +You must be ingesting Zeek SSL data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting when any of the predefined SNICat commands are found within the server_name (SNI) field. These commands are LIST, LS, SIZE, LD, CB, EX, ALIVE, EXIT, WHERE, and finito. You can go further once this has been detected, and run other searches to decode the SNI data to prove or disprove if any data exfiltration has taken place. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1041 | Exfiltration Over C2 Channel | Exfiltration | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Unknown + +#### Reference + +* https://www.mnemonic.no/blog/introducing-snicat/ + +* https://github.com/mnemonic-no/SNIcat + +* https://attack.mitre.org/techniques/T1041/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Software Download To Network Device +Adversaries may abuse netbooting to load an unauthorized network device operating system from a Trivial File Transfer Protocol (TFTP) server. TFTP boot (netbooting) is commonly used by network administrators to load configuration-controlled network device images from a centralized management server. Netbooting is one option in the boot sequence and can be used to centralize, manage, and control device images. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1542.005](https://attack.mitre.org/techniques/T1542.005/) +- **Last Updated**: 2020-10-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where (All_Traffic.transport=udp AND All_Traffic.dest_port=69) OR (All_Traffic.transport=tcp AND All_Traffic.dest_port=21) OR (All_Traffic.transport=tcp AND All_Traffic.dest_port=22) AND All_Traffic.dest_category!=common_software_repo_destination AND All_Traffic.src_category=network OR All_Traffic.src_category=router OR All_Traffic.src_category=switch by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_software_download_to_network_device_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search looks for Network Traffic events to TFTP, FTP or SSH/SCP ports from network devices. Make sure to tag any network devices as network, router or switch in order for this detection to work. If the TFTP traffic doesn't traverse a firewall nor packet inspection, these events will not be logged. This is typically an issue if the TFTP server is on the same subnet as the network device. There is also a chance of the network device loading software using a DHCP assigned IP address (netboot) which is not in the Asset inventory. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1542.005 | TFTP Boot | Defense Evasion, Persistence | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +This search will also report any legitimate attempts of software downloads to network devices as well as outbound SSH sessions from network devices. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Spike in AWS API Activity +This search will detect users creating spikes of API activity in your AWS environment. It will also update the cache file that factors in the latest data. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventType=AwsApiCall [search `cloudtrail` eventType=AwsApiCall +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup api_call_by_user_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup api_call_by_user_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventName, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_aws_api_activity_filter` +``` +#### Associated Analytic Story + +* AWS User Monitoring + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike.\ +This search produces fields (`eventName`,`numberOfApiCalls`,`uniqueApisCalled`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** Number of API Calls, **Field:** numberOfApiCalls\ +1. \ +1. **Label:** Unique API Calls, **Field:** uniqueApisCalled\ +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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives + + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect Spike in AWS Security Hub Alerts for EC2 Instance +This search looks for a spike in number of of AWS security Hub alerts for an EC2 instance in 4 hours intervals + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`aws_securityhub_finding` "Resources{}.Type"=AWSEC2Instance +| bucket span=4h _time +| stats count AS alerts values(Title) as Title values(Types{}) as Types values(vendor_account) as vendor_account values(vendor_region) as vendor_region values(severity) as severity by _time dest +| eventstats avg(alerts) as total_alerts_avg, stdev(alerts) as total_alerts_stdev +| eval threshold_value = 3 +| eval isOutlier=if(alerts > total_alerts_avg+(total_alerts_stdev * threshold_value), 1, 0) +| search isOutlier=1 +| table _time dest alerts Title Types vendor_account vendor_region severity isOutlier total_alerts_avg +| `detect_spike_in_aws_security_hub_alerts_for_ec2_instance_filter` +``` +#### Associated Analytic Story + +* AWS Security Hub Alerts + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your Security Hub inputs. The threshold_value should be tuned to your environment and schedule these searches according to the bucket span interval. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +None + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/security_hub_ec2_spike/security_hub_ec2_spike.json + + +_version_: 3 +
+ +--- + +### Detect Spike in AWS Security Hub Alerts for User +This search looks for a spike in number of of AWS security Hub alerts for an AWS IAM User in 4 hours intervals. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`aws_securityhub_finding` "findings{}.Resources{}.Type"= AwsIamUser +| rename findings{}.Resources{}.Id as user +| bucket span=4h _time +| stats count AS alerts by _time user +| eventstats avg(alerts) as total_launched_avg, stdev(alerts) as total_launched_stdev +| eval threshold_value = 2 +| eval isOutlier=if(alerts > total_launched_avg+(total_launched_stdev * threshold_value), 1, 0) +| search isOutlier=1 +| table _time user alerts +|`detect_spike_in_aws_security_hub_alerts_for_user_filter` +``` +#### Associated Analytic Story + +* AWS Security Hub Alerts + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your Security Hub inputs. The threshold_value should be tuned to your environment and schedule these searches according to the bucket span interval. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +None + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Detect Spike in Network ACL Activity +This search will detect users creating spikes in API activity related to network access-control lists (ACLs)in your AWS environment. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2018-05-21 + +
+ details + +#### Search +``` +`cloudtrail` `network_acl_events` [search `cloudtrail` `network_acl_events` +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup network_acl_activity_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup network_acl_activity_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventNames, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_network_acl_activity_filter` +``` +#### Associated Analytic Story + +* AWS Network ACL Activity + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of Network ACL Activity by ARN" support search once to create a lookup file of previously seen Network ACL Activity. To add or remove API event names related to network ACLs, edit the macro `network_acl_events`. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The false-positive rate may vary based on the values of`dataPointThreshold` and `deviationThreshold`. Please modify this according the your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Spike in S3 Bucket deletion +This search detects users creating spikes in API activity related to deletion of S3 buckets in your AWS environment. It will also update the cache file that factors in the latest data. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2018-11-27 + +
+ details + +#### Search +``` +`cloudtrail` eventName=DeleteBucket [search `cloudtrail` eventName=DeleteBucket +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup s3_deletion_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup s3_deletion_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| spath output=bucketName path=requestParameters.bucketName +| stats values(bucketName) as bucketName, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_s3_bucket_deletion_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS S3 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of S3 Bucket deletion activity by ARN" support search once to create a baseline of previously seen S3 bucket-deletion activity. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Based on the values of`dataPointThreshold` and `deviationThreshold`, the false positive rate may vary. Please modify this according the your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Spike in Security Group Activity +This search will detect users creating spikes in API activity related to security groups in your AWS environment. It will also update the cache file that factors in the latest data. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2018-04-18 + +
+ details + +#### Search +``` +`cloudtrail` `security_group_api_calls` [search `cloudtrail` `security_group_api_calls` +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup security_group_activity_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup security_group_activity_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventNames, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_security_group_activity_filter` +``` +#### Associated Analytic Story + +* AWS User Monitoring + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike.This search works best when you run the "Baseline of Security Group Activity by ARN" support search once to create a history of previously seen Security Group Activity. To add or remove API event names for security groups, edit the macro `security_group_api_calls`. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Based on the values of`dataPointThreshold` and `deviationThreshold`, the false positive rate may vary. Please modify this according the your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Spike in blocked Outbound Traffic from your AWS +This search will detect spike in blocked outbound network connections originating from within your AWS environment. It will also update the cache file that factors in the latest data. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-05-07 + +
+ details + +#### Search +``` +`cloudwatchlogs_vpcflow` action=blocked (src_ip=10.0.0.0/8 OR src_ip=172.16.0.0/12 OR src_ip=192.168.0.0/16) ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) [search `cloudwatchlogs_vpcflow` action=blocked (src_ip=10.0.0.0/8 OR src_ip=172.16.0.0/12 OR src_ip=192.168.0.0/16) ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) +| stats count as numberOfBlockedConnections by src_ip +| inputlookup baseline_blocked_outbound_connections append=t +| fields - latestCount +| stats values(*) as * by src_ip +| rename numberOfBlockedConnections as latestCount +| eval newAvgBlockedConnections=avgBlockedConnections + (latestCount-avgBlockedConnections)/720 +| eval newStdevBlockedConnections=sqrt(((pow(stdevBlockedConnections, 2)*719 + (latestCount-newAvgBlockedConnections)*(latestCount-avgBlockedConnections))/720)) +| eval avgBlockedConnections=coalesce(newAvgBlockedConnections, avgBlockedConnections), stdevBlockedConnections=coalesce(newStdevBlockedConnections, stdevBlockedConnections), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table src_ip, latestCount, numDataPoints, avgBlockedConnections, stdevBlockedConnections +| outputlookup baseline_blocked_outbound_connections +| eval dataPointThreshold = 5, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgBlockedConnections+deviationThreshold*stdevBlockedConnections) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| table src_ip] +| stats values(dest_ip) as "Blocked Destination IPs", values(interface_id) as "resourceId" count as numberOfBlockedConnections, dc(dest_ip) as uniqueDestConnections by src_ip +| `detect_spike_in_blocked_outbound_traffic_from_your_aws_filter` +``` +#### Associated Analytic Story + +* AWS Network ACL Activity + +* Suspicious AWS Traffic + +* Command and Control + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your VPC Flow logs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the number of data points required to meet the definition of "spike." The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of Blocked Outbound Connection" support search once to create a history of previously seen blocked outbound connections. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Known False Positives +The false-positive rate may vary based on the values of`dataPointThreshold` and `deviationThreshold`. Additionally, false positives may result when AWS administrators roll out policies enforcing network blocks, causing sudden increases in the number of blocked outbound connections. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Traffic Mirroring +Adversaries may leverage traffic mirroring in order to automate data exfiltration over compromised network infrastructure. Traffic mirroring is a native feature for some network devices and used for network analysis and may be configured to duplicate traffic and forward to one or more destinations for analysis by a network analyzer or other monitoring device. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1020.001](https://attack.mitre.org/techniques/T1020.001/) +- **Last Updated**: 2020-10-28 + +
+ details + +#### Search +``` +`cisco_networks` (facility="MIRROR" mnemonic="ETH_SPAN_SESSION_UP") OR (facility="SPAN" mnemonic="SESSION_UP") OR (facility="SPAN" mnemonic="PKTCAP_START") OR (mnemonic="CFGLOG_LOGGEDCMD" command="monitor session*") +| stats min(_time) AS firstTime max(_time) AS lastTime count BY host facility mnemonic +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_traffic_mirroring_filter` +``` +#### Associated Analytic Story + +* Router and Infrastructure Security + + +#### How To Implement +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices and that the devices have been configured according to the documentation of the Cisco Networks Add-on. Also note that an attacker may disable logging from the device prior to enabling traffic mirroring. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1020.001 | Traffic Duplication | Exfiltration | + + +#### Kill Chain Phase + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +This search will return false positives for any legitimate traffic captures by network administrators. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect USB device insertion +The search is used to detect hosts that generate Windows Event ID 4663 for successful attempts to write to or read from a removable storage and Event ID 4656 for failures, which occurs when a USB drive is plugged in. In this scenario we are querying the Change_Analysis data model to look for Windows Event ID 4656 or 4663 where the priority of the affected host is marked as high in the ES Assets and Identity Framework. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change_Analysis +- **ATT&CK**: +- **Last Updated**: 2017-11-27 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count earliest(_time) AS earliest latest(_time) AS latest from datamodel=Change_Analysis where (nodename = All_Changes) All_Changes.result="Removable Storage device" (All_Changes.result_id=4663 OR All_Changes.result_id=4656) (All_Changes.src_priority=high) by All_Changes.dest +| `drop_dm_object_name("All_Changes")` +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `detect_usb_device_insertion_filter` +``` +#### Associated Analytic Story + +* Data Protection + + +#### How To Implement +To successfully implement this search, you must ingest Windows Security Event logs and track event code 4663 and 4656. Ensure that the field from the event logs is being mapped to the result_id field in the Change_Analysis data model. To minimize the alert volume, this search leverages the Assets and Identity framework to filter out events from those assets not marked high priority in the Enterprise Security Assets and Identity Framework. + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +Legitimate USB activity will also be detected. Please verify and investigate as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Unauthorized Assets by MAC address +By populating the organization's assets within the assets_by_str.csv, we will be able to detect unauthorized devices that are trying to connect with the organization's network by inspecting DHCP request packets, which are issued by devices when they attempt to obtain an IP address from the DHCP server. The MAC address associated with the source of the DHCP request is checked against the list of known devices, and reports on those that are not found. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Sessions +- **ATT&CK**: +- **Last Updated**: 2017-09-13 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Sessions where nodename=All_Sessions.DHCP All_Sessions.signature=DHCPREQUEST by All_Sessions.src_ip All_Sessions.dest_mac +| dedup All_Sessions.dest_mac +| `drop_dm_object_name("Network_Sessions")` +|`drop_dm_object_name("All_Sessions")` +| search NOT [ +| inputlookup asset_lookup_by_str +|rename mac as dest_mac +| fields + dest_mac] +| `detect_unauthorized_assets_by_mac_address_filter` +``` +#### Associated Analytic Story + +* Asset Tracking + + +#### How To Implement +This search uses the Network_Sessions data model shipped with Enterprise Security. It leverages the Assets and Identity framework to populate the assets_by_str.csv file located in SA-IdentityManagement, which will contain a list of known authorized organizational assets including their MAC addresses. Ensure that all inventoried systems have their MAC address populated. + +#### Required field + + + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +This search might be prone to high false positives. Please consider this when conducting analysis or investigations. Authorized devices may be detected as unauthorized. If this is the case, verify the MAC address of the system responsible for the false positive and add it to the Assets and Identity framework with the proper information. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Use of cmd exe to Launch Script Interpreters +This search looks for the execution of the cscript.exe or wscript.exe processes, with a parent of cmd.exe. The search will return the count, the first and last time this execution was seen on a machine, the user, and the destination of the machine + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.003](https://attack.mitre.org/techniques/T1059.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name="cmd.exe" (Processes.process_name=cscript.exe OR Processes.process_name =wscript.exe) by Processes.parent_process Processes.process_name Processes.user Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_use_of_cmd_exe_to_launch_script_interpreters_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Suspicious Command-Line Executions + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Some legitimate applications may exhibit this behavior. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.003/cmd_spawns_cscript/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Detect Windows DNS SIGRed via Splunk Stream +This search detects SIGRed via Splunk Stream. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1203](https://attack.mitre.org/techniques/T1203/) +- **Last Updated**: 2020-07-28 + +
+ details + +#### Search +``` +`stream_dns` +| spath "query_type{}" +| search "query_type{}" IN (SIG,KEY) +| spath protocol_stack +| search protocol_stack="ip:tcp:dns" +| append [search `stream_tcp` bytes_out>65000] +| `detect_windows_dns_sigred_via_splunk_stream_filter` +| stats count by flow_id +| where count>1 +| fields - count +``` +#### Associated Analytic Story + +* Windows DNS SIGRed CVE-2020-1350 + + +#### How To Implement +You must be ingesting Splunk Stream DNS and Splunk Stream TCP. We are detecting SIG and KEY records via stream:dns and TCP payload over 65KB in size via stream:tcp. Replace the macro definitions ('stream:dns' and 'stream:tcp') with configurations for your Splunk environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1203 | Exploitation for Client Execution | Execution | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Windows DNS SIGRed via Zeek +This search detects SIGRed via Zeek DNS and Zeek Conn data. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1203](https://attack.mitre.org/techniques/T1203/) +- **Last Updated**: 2020-07-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where DNS.query_type IN (SIG,KEY) by DNS.flow_id +| rename DNS.flow_id as flow_id +| append [ +| tstats `security_content_summariesonly` count from datamodel=Network_Traffic where All_Traffic.bytes_in>65000 by All_Traffic.flow_id +| rename All_Traffic.flow_id as flow_id] +| `detect_windows_dns_sigred_via_zeek_filter` +| stats count by flow_id +| where count>1 +| fields - count +``` +#### Associated Analytic Story + +* Windows DNS SIGRed CVE-2020-1350 + + +#### How To Implement +You must be ingesting Zeek DNS and Zeek Conn data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting SIG and KEY records via bro:dns:json and TCP payload over 65KB in size via bro:conn:json. The Network Resolution and Network Traffic datamodels are in use for this search. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1203 | Exploitation for Client Execution | Execution | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect Zerologon via Zeek +This search detects attempts to run exploits for the Zerologon CVE-2020-1472 vulnerability via Zeek RPC + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1190](https://attack.mitre.org/techniques/T1190/) +- **Last Updated**: 2020-09-15 + +
+ details + +#### Search +``` +`zeek_rpc` operation IN (NetrServerPasswordSet2,NetrServerReqChallenge,NetrServerAuthenticate3) +| bin span=5m _time +| stats values(operation) dc(operation) as opscount count(eval(operation=="NetrServerReqChallenge")) as challenge count(eval(operation=="NetrServerAuthenticate3")) as authcount count(eval(operation=="NetrServerPasswordSet2")) as passcount count as totalcount by _time,src_ip,dest_ip +| search opscount=3 authcount>4 passcount>0 +| search `detect_zerologon_via_zeek_filter` +``` +#### Associated Analytic Story + +* Detect Zerologon Attack + + +#### How To Implement +You must be ingesting Zeek DCE-RPC data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting when all three RPC operations (NetrServerReqChallenge, NetrServerAuthenticate3, NetrServerPasswordSet2) are splunk_security_essentials_app via bro:rpc:json. These three operations are then correlated on the Zeek UID field. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1190 | Exploit Public-Facing Application | Initial Access | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +unknown + +#### Reference + +* https://www.secura.com/blog/zero-logon + +* https://github.com/SecuraBV/CVE-2020-1472 + +* https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1472 + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect attackers scanning for vulnerable JBoss servers +This search looks for specific GET or HEAD requests to web servers that are indicative of reconnaissance attempts to identify vulnerable JBoss servers. JexBoss is described as the exploit tool of choice for this malicious activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1082](https://attack.mitre.org/techniques/T1082/) +- **Last Updated**: 2017-09-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Web where (Web.http_method="GET" OR Web.http_method="HEAD") AND (Web.url="*/web-console/ServerInfo.jsp*" OR Web.url="*web-console*" OR Web.url="*jmx-console*" OR Web.url = "*invoker*") by Web.http_method, Web.url, Web.src, Web.dest +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_attackers_scanning_for_vulnerable_jboss_servers_filter` +``` +#### Associated Analytic Story + +* JBoss Vulnerability + +* SamSam Ransomware + + +#### How To Implement +You must be ingesting data from the web server or network traffic that contains web specific information, and populating the Web data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1082 | System Information Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +It's possible for legitimate HTTP requests to be made to URLs containing the suspicious paths. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect hosts connecting to dynamic domain providers +Malicious actors often abuse legitimate Dynamic DNS services to host malicious payloads or interactive command and control nodes. Attackers will automate domain resolution changes by routing dynamic domains to countless IP addresses to circumvent firewall blocks, block lists as well as frustrate a network defenders analytic and investigative processes. This search will look for DNS queries made from within your infrastructure to suspicious dynamic domains. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2021-01-14 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(DNS.answer) as answer min(_time) as firstTime from datamodel=Network_Resolution by DNS.query host +| `drop_dm_object_name("DNS")` +| `security_content_ctime(firstTime)` +| `dynamic_dns_providers` +| `detect_hosts_connecting_to_dynamic_domain_providers_filter` +``` +#### Associated Analytic Story + +* Data Protection + +* Prohibited Traffic Allowed or Protocol Mismatch + +* DNS Hijacking + +* Suspicious DNS Traffic + +* Dynamic DNS + +* Command and Control + + +#### How To Implement +First, you'll need to ingest data from your DNS operations. This can be done by ingesting logs from your server or data, collected passively by Splunk Stream or a similar solution. Specifically, data that contains the domain that is being queried and the IP of the host originating the request must be populating the `Network_Resolution` data model. This search also leverages a lookup file, `dynamic_dns_providers_default.csv`, which contains a non-exhaustive list of Dynamic DNS providers. Please consider updating the local lookup periodically by adding new domains to the list of `dynamic_dns_providers_local.csv`.\ +This search produces fields (query, answer, isDynDNS) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable event. To see the additional metadata, add the following fields, if not already present, to Incident Review. Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** DNS Query, **Field:** query\ +1. \ +1. **Label:** DNS Answer, **Field:** answer\ +1. \ +1. **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` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1189 | Drive-by Compromise | Initial Access | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Some users and applications may leverage Dynamic DNS to reach out to some domains on the Internet since dynamic DNS by itself is not malicious, however this activity must be verified. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1189/dyn_dns_site/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Detect malicious requests to exploit JBoss servers +This search is used to detect malicious HTTP requests crafted to exploit jmx-console in JBoss servers. The malicious requests have a long URL length, as the payload is embedded in the URL. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: +- **Last Updated**: 2017-09-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Web where (Web.http_method="GET" OR Web.http_method="HEAD") by Web.http_method, Web.url,Web.url_length Web.src, Web.dest +| search Web.url="*jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.admin*import*" AND Web.url_length > 200 +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table src, dest_ip, http_method, url, firstTime, lastTime +| `detect_malicious_requests_to_exploit_jboss_servers_filter` +``` +#### Associated Analytic Story + +* JBoss Vulnerability + +* SamSam Ransomware + + +#### How To Implement +You must ingest data from the web server or capture network data that contains web specific information with solutions such as Bro or Splunk Stream, and populating the Web data model + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +No known false positives for this detection. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect mshta inline hta execution +The following analytic identifies "mshta.exe" execution with inline protocol handlers. "JavaScript", "VBScript", and "About" are the only supported options when invoking HTA content directly on the command-line. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "mshta.exe" and its parent process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=mshta.exe (Processes.process=*vbscript* OR Processes.process=*javascript* OR Processes.process=*about*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_inline_hta_execution_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +#### Reference + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Detect mshta renamed +The following analytic identifies renamed instances of mshta.exe executing. Mshta.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. This analytic utilizes the internal name of the PE to identify if is the legitimate mshta binary. Further analysis should be performed to review the executed content and validation it is the real mshta. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (OriginalFileName=mshta.exe AND process_name!=mshta.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_renamed_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may use a moved copy of mshta.exe, but never renamed, triggering a false positive. + +#### Reference + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Detect new API calls from user roles +This search detects new API calls that have either never been seen before or that have not been seen in the previous hour, where the identity type is `AssumedRole`. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2018-04-16 + +
+ details + +#### Search +``` +`cloudtrail` eventType=AwsApiCall errorCode=success userIdentity.type=AssumedRole [search `cloudtrail` eventType=AwsApiCall errorCode=success userIdentity.type=AssumedRole +| stats earliest(_time) as earliest latest(_time) as latest by userName eventName +| inputlookup append=t previously_seen_api_calls_from_user_roles +| stats min(earliest) as earliest, max(latest) as latest by userName eventName +| outputlookup previously_seen_api_calls_from_user_roles +| eval newApiCallfromUserRole=if(earliest>=relative_time(now(), "-70m@m"), 1, 0) +| where newApiCallfromUserRole=1 +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| table eventName userName] +|rename userName as user +| stats values(eventName) earliest(_time) as earliest latest(_time) as latest by user +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `detect_new_api_calls_from_user_roles_filter` +``` +#### Associated Analytic Story + +* AWS User Monitoring + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously seen API call per user roles in CloudTrail" support search once to create a history of previously seen user roles. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that there are legitimate user roles making new or infrequently used API calls in your infrastructure, causing the search to trigger. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Detect new user AWS Console Login +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour. Deprecated now this search is updated to use the Authentication datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=ConsoleLogin +| rename userIdentity.arn as user +| stats earliest(_time) as firstTime latest(_time) as lastTime by user +| inputlookup append=t previously_seen_users_console_logins_cloudtrail +| stats min(firstTime) as firstTime max(lastTime) as lastTime by user +| eval userStatus=if(firstTime >= relative_time(now(), "-70m@m"), "First Time Logging into AWS Console","Previously Seen User") +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| where userStatus ="First Time Logging into AWS Console" +| `detect_new_user_aws_console_login_filter` +``` +#### Associated Analytic Story + +* Suspicious AWS Login Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Run the "Previously seen users in CloudTrail" support search only once to create a baseline of previously seen IAM users within the last 30 days. Run "Update previously seen users in CloudTrail" hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detect processes used for System Network Configuration Discovery +This search looks for fast execution of processes used for system network configuration discovery on the endpoint. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1016](https://attack.mitre.org/techniques/T1016/) +- **Last Updated**: 2020-11-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.process_name Processes.user _time +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| search `system_network_configuration_discovery_tools` +| transaction dest connected=false maxpause=5m +|where eventcount>=5 +| table firstTime lastTime dest user process_name process parent_process eventcount +| `detect_processes_used_for_system_network_configuration_discovery_filter` +``` +#### Associated Analytic Story + +* Unusual Processes + + +#### How To Implement +You must be ingesting data that records registry activity from your hosts to populate the Endpoint data model in the processes node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is usually generated via logs that report reads and writes to the registry or that are populated via Windows event logs, after enabling process tracking in your Windows audit settings. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1016 | System Network Configuration Discovery | Discovery | + + +#### Kill Chain Phase + +* Installation + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +It is uncommon for normal users to execute a series of commands used for network discovery. System administrators often use scripts to execute these commands. These can generate false positives. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1016/discovery_commands/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Detect web traffic to dynamic domain providers +This search looks for web connections to dynamic DNS providers. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1071.001](https://attack.mitre.org/techniques/T1071.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Web.url) as url min(_time) as firstTime from datamodel=Web where Web.status=200 by Web.src Web.dest Web.status +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `dynamic_dns_web_traffic` +| `detect_web_traffic_to_dynamic_domain_providers_filter` +``` +#### Associated Analytic Story + +* Dynamic DNS + + +#### How To Implement +This search requires you to be ingesting web-traffic logs. You can obtain these logs from indexing data from a web proxy or by using a network-traffic-analysis tool, such as Bro or Splunk Stream. The web data model must contain the URL being requested, the IP address of the host initiating the request, and the destination IP. This search also leverages a lookup file, `dynamic_dns_providers_default.csv`, which contains a non-exhaustive list of dynamic DNS providers. Consider periodically updating this local lookup file with new domains.\ +This search produces fields (`isDynDNS`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **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` Deprecated because duplicate. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.001 | Web Protocols | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +It is possible that list of dynamic DNS providers is outdated and/or that the URL being requested is legitimate. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detection of DNS Tunnels +This search is used to detect DNS tunneling, by calculating the sum of the length of DNS queries and DNS answers. The search also filters out potential false positives by filtering out queries made to internal systems and the queries originating from internal DNS, Web, and Email servers. Endpoints using DNS as a method of transmission for data exfiltration, command and control, or evasion of security controls can often be detected by noting an unusually large volume of DNS traffic. Deprecated because existing detection is doing the same. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/) +- **Last Updated**: 2017-09-18 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` dc("DNS.query") as count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" NOT (`cim_corporate_web_domain_search("DNS.query")`) NOT "DNS.query"="*.in-addr.arpa" NOT ("DNS.src_category"="svc_infra_dns" OR "DNS.src_category"="svc_infra_webproxy" OR "DNS.src_category"="svc_infra_email*" ) by "DNS.src","DNS.query" +| rename "DNS.src" as src "DNS.query" as message +| eval length=len(message) +| stats sum(length) as length by src +| append [ tstats `security_content_summariesonly` dc("DNS.answer") as count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" NOT (`cim_corporate_web_domain_search("DNS.query")`) NOT "DNS.query"="*.in-addr.arpa" NOT ("DNS.src_category"="svc_infra_dns" OR "DNS.src_category"="svc_infra_webproxy" OR "DNS.src_category"="svc_infra_email*" ) by "DNS.src","DNS.answer" +| rename "DNS.src" as src "DNS.answer" as message +| eval message=if(message=="unknown","", message) +| eval length=len(message) +| stats sum(length) as length by src ] +| stats sum(length) as length by src +| where length > 10000 +| `detection_of_dns_tunnels_filter` +``` +#### Associated Analytic Story + +* Data Protection + +* Suspicious DNS Traffic + +* Command and Control + + +#### How To Implement +To successfully implement this search, we must ensure that DNS data is being ingested and mapped to the appropriate fields in the Network_Resolution data model. Fields like src_category are automatically provided by the Assets and Identity Framework shipped with Splunk Enterprise Security. You will need to ensure you are using the Assets and Identity Framework and populating the src_category field. You will also need to enable the `cim_corporate_web_domain_search()` macro which will essentially filter out the DNS queries made to the corporate web domains to reduce alert fatigue. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +It's possible that normal DNS traffic will exhibit this behavior. If an alert is generated, please investigate and validate as appropriate. The threshold can also be modified to better suit your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Detection of tools built by NirSoft +This search looks for specific command-line arguments that may indicate the execution of tools made by Nirsoft, which are legitimate, but may be abused by attackers. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1072](https://attack.mitre.org/techniques/T1072/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process="* /stext *" OR Processes.process="* /scomma *" ) by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detection_of_tools_built_by_nirsoft_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1072 | Software Deployment Tools | Execution, Lateral Movement | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +While legitimate, these NirSoft tools are prone to abuse. You should verfiy that the tool was used for a legitimate purpose. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Disabling Remote User Account Control +The search looks for modifications to registry keys that control the enforcement of Windows User Account Control (UAC). + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1548.002](https://attack.mitre.org/techniques/T1548.002/) +- **Last Updated**: 2020-11-18 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path=*HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\EnableLUA* Registry.registry_value_name="DWORD (0x00000000)" by Registry.dest, Registry.registry_key_name Registry.user Registry.registry_path Registry.registry_value_name Registry.action +| `drop_dm_object_name(Registry)` +| `disabling_remote_user_account_control_filter` +``` +#### Associated Analytic Story + +* Windows Defense Evasion Tactics + +* Suspicious Windows Registry Activities + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report registry modifications. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1548.002 | Bypass User Account Control | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +This registry key may be modified via administrators to implement a change in system policy. This type of change should be a very rare occurrence. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1548.002/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Dump LSASS via comsvcs DLL +Detect the usage of comsvcs.dll for dumping the lsass process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2020-02-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*comsvcs.dll* Processes.process=*MiniDump* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_comsvcs_dll_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + +* Suspicious Rundll32 Activity + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://modexp.wordpress.com/2019/08/30/minidumpwritedump-via-com-services-dll/ + +* https://twitter.com/SBousseaden/status/1167417096374050817 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Dump LSASS via procdump +Detect procdump.exe dumping the lsass process. This query looks for both -mm and -ma usage. -mm will produce a mini dump file and -ma will write a dump file with all process memory. Both are highly suspect and should be reviewed. This query does not monitor for the internal name (OriginalFileName=procdump) of the PE or look for procdump64.exe. Modify the query as needed.\ +During triage, confirm this is procdump.exe executing. If it is the first time a Sysinternals utility has been ran, it is possible there will be a -accepteula on the command line. Review other endpoint data sources for cross process (injection) into lsass.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2021-02-01 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=procdump.exe (Processes.process=*-ma* OR Processes.process=*-mm*) Processes.process=*lsass* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_procdump_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://docs.microsoft.com/en-us/sysinternals/downloads/procdump + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-2---dump-lsassexe-memory-using-procdump + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Dump LSASS via procdump Rename +Detect a renamed instance of procdump.exe dumping the lsass process. This query looks for both -mm and -ma usage. -mm will produce a mini dump file and -ma will write a dump file with all process memory. Both are highly suspect and should be reviewed. Modify the query as needed.\ +During triage, confirm this is procdump.exe executing. If it is the first time a Sysinternals utility has been ran, it is possible there will be a -accepteula on the command line. Review other endpoint data sources for cross process (injection) into lsass.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2021-02-01 + +
+ details + +#### Search +``` +`sysmon` OriginalFileName=procdump process_name!=procdump*.exe EventID=1 (CommandLine=*-ma* OR CommandLine=*-mm*) CommandLine=*lsass* +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, parent_process_name, process_name, OriginalFileName, CommandLine +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_procdump_rename_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://docs.microsoft.com/en-us/sysinternals/downloads/procdump + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-2---dump-lsassexe-memory-using-procdump + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### EC2 Instance Modified With Previously Unseen User +This search looks for EC2 instances being modified by users who have not previously modified them. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` `ec2_modification_api_calls` [search `cloudtrail` `ec2_modification_api_calls` errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by userIdentity.arn +| rename userIdentity.arn as arn +| inputlookup append=t previously_seen_ec2_modifications_by_user +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by arn +| outputlookup previously_seen_ec2_modifications_by_user +| eval newUser=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newUser=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=dest responseElements.instancesSet.items{}.instanceId +| spath output=user userIdentity.arn +| table _time, user, dest +| `ec2_instance_modified_with_previously_unseen_user_filter` +``` +#### Associated Analytic Story + +* Unusual AWS EC2 Modifications + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Launches By User" support search once to create a history of previously seen ARNs. To add or remove APIs that modify an EC2 instance, edit the macro `ec2_modification_api_calls`. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It's possible that a new user will start to modify EC2 instances when they haven't before for any number of reasons. Verify with the user that is modifying instances that this is the intended behavior. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### EC2 Instance Started In Previously Unseen Region +This search looks for CloudTrail events where an instance is started in a particular region in the last one hour and then compares it to a lookup file of previously seen regions where an instance was started + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-02-23 + +
+ details + +#### Search +``` +`cloudtrail` earliest=-1h StartInstances +| stats earliest(_time) as earliest latest(_time) as latest by awsRegion +| inputlookup append=t previously_seen_aws_regions.csv +| stats min(earliest) as earliest max(latest) as latest by awsRegion +| outputlookup previously_seen_aws_regions.csv +| eval regionStatus=if(earliest >= relative_time(now(),"-1d@d"), "Instance Started in a New Region","Previously Seen Region") +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| where regionStatus="Instance Started in a New Region" +| `ec2_instance_started_in_previously_unseen_region_filter` +``` +#### Associated Analytic Story + +* AWS Cryptomining + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Run the "Previously seen AWS Regions" support search only once to create of baseline of previously seen regions. This search is deprecated and have been translated to use the latest Change Datamodel. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible that a user has unknowingly started an instance in a new region. Please verify that this activity is legitimate. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### EC2 Instance Started With Previously Unseen AMI +This search looks for EC2 instances being created with previously unseen AMIs. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-03-12 + +
+ details + +#### Search +``` +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by requestParameters.instancesSet.items{}.imageId +| rename requestParameters.instancesSet.items{}.imageId as amiID +| inputlookup append=t previously_seen_ec2_amis.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by amiID +| outputlookup previously_seen_ec2_amis.csv +| eval newAMI=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| where newAMI=1 +| rename amiID as requestParameters.instancesSet.items{}.imageId +| table requestParameters.instancesSet.items{}.imageId] +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest, userIdentity.arn as arn, requestParameters.instancesSet.items{}.imageId as amiID +| table firstTime, lastTime, arn, amiID, dest, instanceType +| `ec2_instance_started_with_previously_unseen_ami_filter` +``` +#### Associated Analytic Story + +* AWS Cryptomining + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 AMIs" support search once to create a history of previously seen AMIs. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +After a new AMI is created, the first systems created with that AMI will cause this alert to fire. Verify that the AMI being used was created by a legitimate user. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### EC2 Instance Started With Previously Unseen Instance Type +This search looks for EC2 instances being created with previously unseen instance types. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-02-07 + +
+ details + +#### Search +``` +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| fillnull value="m1.small" requestParameters.instanceType +| stats earliest(_time) as earliest latest(_time) as latest by requestParameters.instanceType +| rename requestParameters.instanceType as instanceType +| inputlookup append=t previously_seen_ec2_instance_types.csv +| stats min(earliest) as earliest max(latest) as latest by instanceType +| outputlookup previously_seen_ec2_instance_types.csv +| eval newType=if(earliest >= relative_time(now(), "-70m@m"), 1, 0) +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| where newType=1 +| rename instanceType as requestParameters.instanceType +| table requestParameters.instanceType] +| spath output=user userIdentity.arn +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest +| table _time, user, dest, instanceType +| `ec2_instance_started_with_previously_unseen_instance_type_filter` +``` +#### Associated Analytic Story + +* AWS Cryptomining + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Instance Types" support search once to create a history of previously seen instance types. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that an admin will create a new system using a new instance type never used before. Verify with the creator that they intended to create the system with the new instance type. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### EC2 Instance Started With Previously Unseen User +This search looks for EC2 instances being created by users who have not created them before. This search is deprecated and have been translated to use the latest Change Datamodel. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by userIdentity.arn +| rename userIdentity.arn as arn +| inputlookup append=t previously_seen_ec2_launches_by_user.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by arn +| outputlookup previously_seen_ec2_launches_by_user.csv +| eval newUser=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newUser=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename arn as userIdentity.arn +| table userIdentity.arn] +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest, userIdentity.arn as user +| table _time, user, dest, instanceType +| `ec2_instance_started_with_previously_unseen_user_filter` +``` +#### Associated Analytic Story + +* AWS Cryptomining + +* Suspicious AWS EC2 Activities + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Launches By User" support search once to create a history of previously seen ARNs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +It's possible that a user will start to create EC2 instances when they haven't before for any number of reasons. Verify with the user that is launching instances that this is the intended behavior. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Email Attachments With Lots Of Spaces +Attackers often use spaces as a means to obfuscate an attachment's file extension. This search looks for messages with email attachments that have many spaces within the file names. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email +- **ATT&CK**: +- **Last Updated**: 2017-09-19 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(All_Email.recipient) as recipient_address min(_time) as firstTime max(_time) as lastTime from datamodel=Email where All_Email.file_name="*" by All_Email.src_user, All_Email.file_name All_Email.message_id +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Email")` +| eval space_ratio = (mvcount(split(file_name," "))-1)/len(file_name) +| search space_ratio >= 0.1 +| rex field=recipient_address "(?.*)@" +| `email_attachments_with_lots_of_spaces_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Suspicious Emails + + +#### How To Implement +You need to ingest data from emails. Specifically, the sender's address and the file names of any attachments must be mapped to the Email data model. The threshold ratio is set to 10%, but this value can be configured to suit each environment. \ + **Splunk Phantom Playbook Integration**\ +If Splunk Phantom is also configured in your environment, a playbook called "Suspicious Email Attachment Investigate and Delete" can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/` and add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search. The notable event will be sent to Phantom and the playbook will gather further information about the file attachment and its network behaviors. If Phantom finds malicious behavior and an analyst approves of the results, the email will be deleted from the user's inbox. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +None at this time + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Email files written outside of the Outlook directory +The search looks at the change-analysis data model and detects email files created outside the normal Outlook directory. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1114.001](https://attack.mitre.org/techniques/T1114.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Filesystem where (Filesystem.file_name=*.pst OR Filesystem.file_name=*.ost) Filesystem.file_path != "C:\\Users\\*\\My Documents\\Outlook Files\\*" Filesystem.file_path!="C:\\Users\\*\\AppData\\Local\\Microsoft\\Outlook*" by Filesystem.action Filesystem.process_id Filesystem.file_name Filesystem.dest +| `drop_dm_object_name("Filesystem")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `email_files_written_outside_of_the_outlook_directory_filter` +``` +#### Associated Analytic Story + +* Collection and Staging + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records the file-system activity from your hosts to populate the Endpoint.Filesystem data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or by other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.001 | Local Email Collection | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators and users sometimes prefer backing up their email data by moving the email files into a different folder. These attempts will be detected by the search. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Email servers sending high volume traffic to hosts +This search looks for an increase of data transfers from your email server to your clients. This could be indicative of a malicious actor collecting data using your email server. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1114.002](https://attack.mitre.org/techniques/T1114.002/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` sum(All_Traffic.bytes_out) as bytes_out from datamodel=Network_Traffic where All_Traffic.src_category=email_server by All_Traffic.dest_ip _time span=1d +| `drop_dm_object_name("All_Traffic")` +| eventstats avg(bytes_out) as avg_bytes_out stdev(bytes_out) as stdev_bytes_out +| eventstats count as num_data_samples avg(eval(if(_time < relative_time(now(), "@d"), bytes_out, null))) as per_source_avg_bytes_out stdev(eval(if(_time < relative_time(now(), "@d"), bytes_out, null))) as per_source_stdev_bytes_out by dest_ip +| eval minimum_data_samples = 4, deviation_threshold = 3 +| where num_data_samples >= minimum_data_samples AND bytes_out > (avg_bytes_out + (deviation_threshold * stdev_bytes_out)) AND bytes_out > (per_source_avg_bytes_out + (deviation_threshold * per_source_stdev_bytes_out)) AND _time >= relative_time(now(), "@d") +| eval num_standard_deviations_away_from_server_average = round(abs(bytes_out - avg_bytes_out) / stdev_bytes_out, 2), num_standard_deviations_away_from_client_average = round(abs(bytes_out - per_source_avg_bytes_out) / per_source_stdev_bytes_out, 2) +| table dest_ip, _time, bytes_out, avg_bytes_out, per_source_avg_bytes_out, num_standard_deviations_away_from_server_average, num_standard_deviations_away_from_client_average +| `email_servers_sending_high_volume_traffic_to_hosts_filter` +``` +#### Associated Analytic Story + +* Collection and Staging + + +#### How To Implement +This search requires you to be ingesting your network traffic and populating the Network_Traffic data model. Your email servers must be categorized as "email_server" for the search to work, as well. You may need to adjust the deviation_threshold and minimum_data_samples values based on the network traffic in your environment. The "deviation_threshold" field is a multiplying factor to control how much variation you're willing to tolerate. The "minimum_data_samples" field is the minimum number of connections of data samples required for the statistic to be valid. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.002 | Remote Email Collection | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The false-positive rate will vary based on how you set the deviation_threshold and data_samples values. Our recommendation is to adjust these values based on your network traffic to and from your email servers. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Excessive DNS Failures +This search identifies DNS query failures by counting the number of DNS responses that do not indicate success, and trigger on more than 50 occurrences. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values("DNS.query") as queries from datamodel=Network_Resolution where nodename=DNS "DNS.reply_code"!="No Error" "DNS.reply_code"!="NoError" DNS.reply_code!="unknown" NOT "DNS.query"="*.arpa" "DNS.query"="*.*" by "DNS.src","DNS.query" +| `drop_dm_object_name("DNS")` +| lookup cim_corporate_web_domain_lookup domain as query OUTPUT domain +| where isnull(domain) +| lookup update=true alexa_lookup_by_str domain as query OUTPUT rank +| where isnull(rank) +| stats sum(count) as count mode(queries) as queries by src +| `get_asset(src)` +| where count>50 +| `excessive_dns_failures_filter` +``` +#### Associated Analytic Story + +* Suspicious DNS Traffic + +* Command and Control + + +#### How To Implement +To successfully implement this search you must ensure that DNS data is populating the Network_Resolution data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.004 | DNS | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +It is possible legitimate traffic can trigger this rule. Please investigate as appropriate. The threshold for generating an event can also be customized to better suit your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Execution of File With Spaces Before Extension +This search looks for processes launched from files with at least five spaces in the name before the extension. This is typically done to obfuscate the file extension by pushing it outside of the default view. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2020-11-19 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_path) as process_path min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process = "* .*" by Processes.dest Processes.user Processes.process Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `execution_of_file_with_spaces_before_extension_filter` +``` +#### Associated Analytic Story + +* Windows File Extension and Association Abuse + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Execution of File with Multiple Extensions +This search looks for processes launched from files that have double extensions in the file name. This is typically done to obscure the "real" file extension and make it appear as though the file being accessed is a data file, as opposed to executable content. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2020-11-18 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process = *.doc.exe OR Processes.process = *.htm.exe OR Processes.process = *.html.exe OR Processes.process = *.txt.exe OR Processes.process = *.pdf.exe OR Processes.process = *.doc.exe by Processes.dest Processes.user Processes.process Processes.parent_process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `execution_of_file_with_multiple_extensions_filter` +``` +#### Associated Analytic Story + +* Windows File Extension and Association Abuse + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Extended Period Without Successful Netbackup Backups +This search returns a list of hosts that have not successfully completed a backup in over a week. Deprecated because it's a infrastructure monitoring. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-09-12 + +
+ details + +#### Search +``` +`netbackup` MESSAGE="Disk/Partition backup completed successfully." +| stats latest(_time) as latestTime by COMPUTERNAME +| `security_content_ctime(latestTime)` +| rename COMPUTERNAME as dest +| eval isOutlier=if(latestTime <= relative_time(now(), "-7d@d"), 1, 0) +| search isOutlier=1 +| table latestTime, dest +| `extended_period_without_successful_netbackup_backups_filter` +``` +#### Associated Analytic Story + +* Monitor Backup Solution + + +#### How To Implement +To successfully implement this search you need to first obtain data from your backup solution, either from the backup logs on your hosts, or from a central server responsible for performing the backups. If you do not use Netbackup, you can modify this search for your backup solution. Depending on how often you backup your systems, you may want to modify how far in the past to look for a successful backup, other than the default of seven days. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### File with Samsam Extension +The search looks for file writes with extensions consistent with a SamSam ransomware attack. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2018-12-14 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| search file_extension=.stubbin OR file_extension=.berkshire OR file_extension=.satoshi OR file_extension=.sophos OR file_extension=.keyxml +| `file_with_samsam_extension_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + + +#### How To Implement +You must be ingesting data that records file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + + +#### Known False Positives +Because these extensions are not typically used in normal operations, you should investigate all results. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/samsam_extension/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### First Time Seen Child Process of Zoom +This search looks for child processes spawned by zoom.exe or zoom.us that has not previously been seen. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2020-05-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` min(_time) as firstTime values(Processes.parent_process_name) as parent_process_name values(Processes.parent_process_id) as parent_process_id values(Processes.process_name) as process_name values(Processes.process) as process from datamodel=Endpoint.Processes where (Processes.parent_process_name=zoom.exe OR Processes.parent_process_name=zoom.us) by Processes.process_id Processes.dest +| `drop_dm_object_name(Processes)` +| lookup zoom_first_time_child_process dest as dest process_name as process_name OUTPUT firstTimeSeen +| where isnull(firstTimeSeen) OR firstTimeSeen > relative_time(now(), "`previously_seen_zoom_child_processes_window`") +| `security_content_ctime(firstTime)` +| table firstTime dest, process_id, process_name, parent_process_id, parent_process_name +|`first_time_seen_child_process_of_zoom_filter` +``` +#### Associated Analytic Story + +* Suspicious Zoom Child Processes + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You should run the baseline search `Previously Seen Zoom Child Processes - Initial` to build the initial table of child processes and hostnames for this search to work. You should also schedule at the same interval as this search the second baseline search `Previously Seen Zoom Child Processes - Update` to keep this table up to date and to age out old child processes. Please update the `previously_seen_zoom_child_processes_window` macro to adjust the time window. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +A new child process of zoom isn't malicious by that fact alone. Further investigation of the actions of the child process is needed to verify any malicious behavior is taken. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1068/zoom_child_process/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### First Time Seen Running Windows Service +This search looks for the first and last time a Windows service is seen running in your environment. This table is then cached. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1569.002](https://attack.mitre.org/techniques/T1569.002/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`wineventlog_system` EventCode=7036 +| rex field=Message "The (?[-\(\)\s\w]+) service entered the (?\w+) state" +| where state="running" +| lookup previously_seen_running_windows_services service as service OUTPUT firstTimeSeen +| where isnull(firstTimeSeen) OR firstTimeSeen > relative_time(now(), `previously_seen_windows_services_window`) +| table _time dest service +| `first_time_seen_running_windows_service_filter` +``` +#### Associated Analytic Story + +* Windows Service Abuse + +* Orangeworm Attack Group + +* Sunburst Malware + + +#### How To Implement +While this search does not require you to adhere to Splunk CIM, you must be ingesting your Windows system event logs in order for this search to execute successfully. You should run the baseline search `Previously Seen Running Windows Services - Initial` to build the initial table of child processes and hostnames for this search to work. You should also schedule at the same interval as this search the second baseline search `Previously Seen Running Windows Services - Update` to keep this table up to date and to age out old Windows Services. Please update the `previously_seen_windows_services_window` macro to adjust the time window. Please ensure that the Splunk Add-on for Microsoft Windows is version 8.0.0 or above. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1569.002 | Service Execution | Execution | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +A previously unseen service is not necessarily malicious. Verify that the service is legitimate and that was installed by a legitimate process. + +#### Reference + + +#### Test Dataset + + +_version_: 4 +
+ +--- + +### First time seen command line argument +This search looks for command-line arguments that use a `/c` parameter to execute a command that has not previously been seen. This is an implementation on SPL2 of the rule `First time seen command line argument` by @bpatel. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1059](https://attack.mitre.org/techniques/T1059/), [T1117](https://attack.mitre.org/techniques/T1117/), [T1202](https://attack.mitre.org/techniques/T1202/) +- **Last Updated**: 2021-2-1 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), cmd_line_norm=lower(cmd_line), cmd_line_norm=replace(cmd_line_norm, /[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/, "GUID"), cmd_line_norm=replace(cmd_line_norm, /(?<=\s)+\\[^:]*(?=\\.*\.\w{3}(\s +|$)+)/, "\\PATH"), /* replaces " \\Something\\Something\\command.ext" => "PATH\\command.ext" */ cmd_line_norm=replace(cmd_line_norm, /\w:\\[^:]*(?=\\.*\.\w{3}(\s +|$)+)/, "\\PATH"), /* replaces "C:\\Something\\Something\\command.ext" => "PATH\\command.ext" */ cmd_line_norm=replace(cmd_line_norm, /\d+/, "N") +| where process_name="cmd.exe" AND match_regex(ucast(cmd_line, "string", ""), /.* \/[cC] .*/)=true +| select cmd_line, cmd_line_norm, timestamp, dest_device_id, dest_user_id +| first_time_event input_columns=["cmd_line_norm"] +| where first_time_cmd_line_norm +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be populating the endpoint data model for SSA and specifically the process_name and the process fields + +#### Required field + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059 | Command and Scripting Interpreter | Execution | +| | | | +| T1202 | Indirect Command Execution | Defense Evasion | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Legitimate programs can also use command-line arguments to execute. Please verify the command-line arguments to check what command/program is being executed. We recommend customizing the `first_time_seen_cmd_line_filter` macro to exclude legitimate parent_process_name + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### First time seen command line argument +This search looks for command-line arguments that use a `/c` parameter to execute a command that has not previously been seen. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = cmd.exe Processes.process = "* /c *" by Processes.process Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats `security_content_summariesonly` earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = cmd.exe Processes.process = "* /c *" by Processes.process +| `drop_dm_object_name(Processes)` +| inputlookup append=t previously_seen_cmd_line_arguments +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by process +| outputlookup previously_seen_cmd_line_arguments +| eval newCmdLineArgument=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCmdLineArgument=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table process] +| `first_time_seen_command_line_argument_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + +* Suspicious Command-Line Executions + +* Orangeworm Attack Group + +* Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns + +* Hidden Cobra Malware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must be ingesting logs with both the process name and command line from your endpoints. The complete process name with command-line arguments are mapped to the "process" field in the Endpoint data model. Please make sure you run the support search "Previously seen command line arguments,"—which creates a lookup file called `previously_seen_cmd_line_arguments.csv`—a historical baseline of all command-line arguments. You must also validate this list. For the search to do accurate calculation, ensure the search scheduling is the same value as the `relative_time` evaluation function. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Legitimate programs can also use command-line arguments to execute. Please verify the command-line arguments to check what command/program is being executed. We recommend customizing the `first_time_seen_cmd_line_filter` macro to exclude legitimate parent_process_name + +#### Reference + + +#### Test Dataset + + +_version_: 5 +
+ +--- + +### GCP Detect accounts with high risk roles by project +This search provides detection of accounts with high risk roles by projects. Compromised accounts with high risk roles can move laterally or even scalate privileges at different projects depending on organization schema. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-10-09 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.request.policy.bindings{}.role=roles/owner OR roles/editor OR roles/iam.serviceAccountUser OR roles/iam.serviceAccountAdmin OR roles/iam.serviceAccountTokenCreator OR roles/dataflow.developer OR roles/dataflow.admin OR roles/composer.admin OR roles/dataproc.admin OR roles/dataproc.editor +| table data.resource.type data.protoPayload.authenticationInfo.principalEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.authorizationInfo{}.resource data.protoPayload.response.bindings{}.role data.protoPayload.response.bindings{}.members{} +| `gcp_detect_accounts_with_high_risk_roles_by_project_filter` +``` +#### Associated Analytic Story + +* GCP Cross Account Activity + + +#### How To Implement +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Accounts with high risk roles should be reduced to the minimum number needed, however specific tasks and setups may be simply expected behavior within organization + +#### Reference + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + +* https://cloud.google.com/iam/docs/understanding-roles + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### GCP Detect gcploit framework +This search provides detection of GCPloit exploitation framework. This framework can be used to escalate privileges and move laterally from compromised high privilege accounts. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-10-08 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.request.function.timeout=539s +| table src src_user data.resource.labels.project_id data.protoPayload.request.function.serviceAccountEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.request.location http_user_agent +| `gcp_detect_gcploit_framework_filter` +``` +#### Associated Analytic Story + +* GCP Cross Account Activity + + +#### How To Implement +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Payload.request.function.timeout value can possibly be match with other functions or requests however the source user and target request account may indicate an attempt to move laterally accross acounts or projects + +#### Reference + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### GCP Detect high risk permissions by resource and account +This search provides detection of high risk permissions by resource and accounts. These are permissions that can allow attackers with compromised accounts to move laterally and escalate privileges. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-10-09 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.authorizationInfo{}.permission=iam.serviceAccounts.getaccesstoken OR iam.serviceAccounts.setIamPolicy OR iam.serviceAccounts.actas OR dataflow.jobs.create OR composer.environments.create OR dataproc.clusters.create +|table data.protoPayload.requestMetadata.callerIp data.protoPayload.authenticationInfo.principalEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.response.bindings{}.members{} data.resource.labels.project_id +| `gcp_detect_high_risk_permissions_by_resource_and_account_filter` +``` +#### Associated Analytic Story + +* GCP Cross Account Activity + + +#### How To Implement +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +High risk permissions are part of any GCP environment, however it is important to track resource and accounts usage, this search may produce false positives. + +#### Reference + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + +* https://cloud.google.com/iam/docs/permissions-reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### GCP GCR container uploaded +This search show information on uploaded containers including source user, account, action, bucket name event name, http user agent, message and destination path. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1525](https://attack.mitre.org/techniques/T1525/) +- **Last Updated**: 2020-02-20 + +
+ details + +#### Search +``` + +|tstats count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Cloud_Infrastructure.Storage where Storage.event_name=storage.objects.create by Storage.src_user Storage.account Storage.action Storage.bucket_name Storage.event_name Storage.http_user_agent Storage.msg Storage.object_path +| `drop_dm_object_name("Storage")` +| `gcp_gcr_container_uploaded_filter` +``` +#### Associated Analytic Story + +* Container Implantation Monitoring and Investigation + + +#### How To Implement +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a subpub subscription to be imported to Splunk. You must also install Cloud Infrastructure data model. Please also customize the `container_implant_gcp_detection_filter` macro to filter out the false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1525 | Implant Container Image | Persistence | + + +#### Kill Chain Phase + + +#### Known False Positives +Uploading container is a normal behavior from developers or users with access to container registry. GCP GCR registers container upload as a Storage event, this search must be considered under the context of CONTAINER upload creation which automatically generates a bucket entry for destination path. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### GCP Kubernetes cluster pod scan detection +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster's pods + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-07-17 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` category=kube-audit +|spath input=properties.log +|search responseStatus.code=401 +|table sourceIPs{} userAgent verb requestURI responseStatus.reason properties.pod +| `gcp_kubernetes_cluster_pod_scan_detection_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a Pub/Sub subscription to be imported to Splunk. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but frequency, User Agent, source IPs and pods will provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### GCP Kubernetes cluster scan detection +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-04-15 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.requestMetadata.callerIp!=127.0.0.1 data.protoPayload.requestMetadata.callerIp!=::1 "data.labels.authorization.k8s.io/decision"=forbid "data.protoPayload.status.message"=PERMISSION_DENIED data.protoPayload.authenticationInfo.principalEmail="system:anonymous" +| rename data.protoPayload.requestMetadata.callerIp as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(data.protoPayload.methodName) as method_name values(data.protoPayload.resourceName) as resource_name values(data.protoPayload.requestMetadata.callerSuppliedUserAgent) as http_user_agent by src_ip data.resource.labels.cluster_name +| rename data.resource.labels.cluster_name as cluster_name +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `gcp_kubernetes_cluster_scan_detection_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a Pub/Sub subscription to be imported to Splunk. You must also install Cloud Infrastructure data model.Customize the macro kubernetes_gcp_scan_fingerprint_attack_detection to filter out FPs. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but frequency, User Agent and source IPs will provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Hiding Files And Directories With Attrib exe +Attackers leverage an existing Windows binary, attrib.exe, to mark specific as hidden by using specific flags so that the victim does not see the file. The search looks for specific command-line arguments to detect the use of attrib.exe to hide files. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1222.001](https://attack.mitre.org/techniques/T1222.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=attrib.exe (Processes.process=*+h*) by Processes.parent_process Processes.process_name Processes.user Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `hiding_files_and_directories_with_attrib_exe_filter` +``` +#### Associated Analytic Story + +* Windows Defense Evasion Tactics + +* Windows Persistence Techniques + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1222.001 | Windows File and Directory Permissions Modification | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some applications and users may legitimately use attrib.exe to interact with the files. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1222.001/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### High Number of Login Failures from a single source +This search will detect more than 5 login failures in Office365 Azure Active Directory from a single source IP address. Please adjust the threshold value of 5 as suited for your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1110.001](https://attack.mitre.org/techniques/T1110.001/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Operation=UserLoginFailed record_type=AzureActiveDirectoryStsLogon app=AzureActiveDirectory +| stats count dc(user) as accounts_locked values(user) as user values(LogonError) as LogonError values(authentication_method) as authentication_method values(signature) as signature values(UserAgent) as UserAgent by src_ip record_type Operation app +| search accounts_locked >= 5 +| `high_number_of_login_failures_from_a_single_source_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1110.001 | Password Guessing | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Hosts receiving high volume of network traffic from email server +This search looks for an increase of data transfers from your email server to your clients. This could be indicative of a malicious actor collecting data using your email server. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1114.002](https://attack.mitre.org/techniques/T1114.002/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` sum(All_Traffic.bytes_in) as bytes_in from datamodel=Network_Traffic where All_Traffic.dest_category=email_server by All_Traffic.src_ip _time span=1d +| `drop_dm_object_name("All_Traffic")` +| eventstats avg(bytes_in) as avg_bytes_in stdev(bytes_in) as stdev_bytes_in +| eventstats count as num_data_samples avg(eval(if(_time < relative_time(now(), "@d"), bytes_in, null))) as per_source_avg_bytes_in stdev(eval(if(_time < relative_time(now(), "@d"), bytes_in, null))) as per_source_stdev_bytes_in by src_ip +| eval minimum_data_samples = 4, deviation_threshold = 3 +| where num_data_samples >= minimum_data_samples AND bytes_in > (avg_bytes_in + (deviation_threshold * stdev_bytes_in)) AND bytes_in > (per_source_avg_bytes_in + (deviation_threshold * per_source_stdev_bytes_in)) AND _time >= relative_time(now(), "@d") +| eval num_standard_deviations_away_from_server_average = round(abs(bytes_in - avg_bytes_in) / stdev_bytes_in, 2), num_standard_deviations_away_from_client_average = round(abs(bytes_in - per_source_avg_bytes_in) / per_source_stdev_bytes_in, 2) +| table src_ip, _time, bytes_in, avg_bytes_in, per_source_avg_bytes_in, num_standard_deviations_away_from_server_average, num_standard_deviations_away_from_client_average +| `hosts_receiving_high_volume_of_network_traffic_from_email_server_filter` +``` +#### Associated Analytic Story + +* Collection and Staging + + +#### How To Implement +This search requires you to be ingesting your network traffic and populating the Network_Traffic data model. Your email servers must be categorized as "email_server" for the search to work, as well. You may need to adjust the deviation_threshold and minimum_data_samples values based on the network traffic in your environment. The "deviation_threshold" field is a multiplying factor to control how much variation you're willing to tolerate. The "minimum_data_samples" field is the minimum number of connections of data samples required for the statistic to be valid. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.002 | Remote Email Collection | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The false-positive rate will vary based on how you set the deviation_threshold and data_samples values. Our recommendation is to adjust these values based on your network traffic to and from your email servers. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Identify New User Accounts +This detection search will help profile user accounts in your environment by identifying newly created accounts that have been added to your network in the past week. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.002](https://attack.mitre.org/techniques/T1078.002/) +- **Last Updated**: 2017-09-12 + +
+ details + +#### Search +``` + +| from datamodel Identity_Management.All_Identities +| eval empStatus=case((now()-startDate)<604800, "Accounts created in last week") +| search empStatus="Accounts created in last week" +| `security_content_ctime(endDate)` +| `security_content_ctime(startDate)` +| table identity empStatus endDate startDate +| `identify_new_user_accounts_filter` +``` +#### Associated Analytic Story + +* Account Monitoring and Controls + + +#### How To Implement +To successfully implement this search, you need to be populating the Enterprise Security Identity_Management data model in the assets and identity framework. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.002 | Domain Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +If the Identity_Management data model is not updated regularly, this search could give you false positive alerts. Please consider this and investigate appropriately. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Access To User Content via PowerSploit modules +This detection identifies access to PowerSploit modules that enable illegaly access user content, such as key logging, audio recording, screenshots, tapping into http and RDP sessions, etc. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1021](https://attack.mitre.org/techniques/T1021/), [T1113](https://attack.mitre.org/techniques/T1113/), [T1123](https://attack.mitre.org/techniques/T1123/), [T1563](https://attack.mitre.org/techniques/T1563/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-HttpStatus/)=true OR match_regex(cmd_line, /(?i)Get-Keystrokes/)=true OR match_regex(cmd_line, /(?i)Get-MicrophoneAudio/)=true OR match_regex(cmd_line, /(?i)Get-NetRDPSession/)=true OR match_regex(cmd_line, /(?i)Get-TimedScreenshot/)=true OR match_regex(cmd_line, /(?i)Get-WebConfig/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021 | Remote Services | Lateral Movement | +| T1113 | Screen Capture | Collection | +| T1123 | Audio Capture | Collection | +| T1563 | Remote Service Session Hijacking | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Account Creation via PowerSploit modules +This detection identifies access to PowerSploit modules that create accounts illegaly. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1585](https://attack.mitre.org/techniques/T1585/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)New-DomainUser/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1585 | Establish Accounts | Resource Development | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Deletion of Logs via Mimikatz modules +This detection identifies access to PowerSploit modules that delete event logs. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1070](https://attack.mitre.org/techniques/T1070/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)event::drop/)=true OR match_regex(cmd_line, /(?i)event::clear/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070 | Indicator Removal on Host | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Enabling or Disabling of Accounts via DSInternals modules +This detection identifies use of DSInternals modules that enable or disable accounts illegaly. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Disable-ADDBAccount/)=true OR match_regex(cmd_line, /(?i)Enable-ADDBAccount/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Management of Active Directory Elements and Policies via DSInternals modules +This detection identifies use of DSInternals modules for illegal management of Active Directoty elements and policies. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1098](https://attack.mitre.org/techniques/T1098/), [T1207](https://attack.mitre.org/techniques/T1207/), [T1484](https://attack.mitre.org/techniques/T1484/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Remove-ADDBObject/)=true OR match_regex(cmd_line, /(?i)Set-ADDBDomainController/)=true OR match_regex(cmd_line, /(?i)Set-ADDBPrimaryGroup/)=true OR match_regex(cmd_line, /(?i)Set-LsaPolicyInformation/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1098 | Account Manipulation | Persistence | +| T1207 | Rogue Domain Controller | Defense Evasion | +| T1484 | Domain Policy Modification | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Management of Computers and Active Directory Elements via PowerSploit modules +This detection identifies access to PowerSploit modules that enable illegal management of computers and Active Directory elements. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1098](https://attack.mitre.org/techniques/T1098/), [T1207](https://attack.mitre.org/techniques/T1207/), [T1484](https://attack.mitre.org/techniques/T1484/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Set-DomainObject/)=true OR match_regex(cmd_line, /(?i)Set-ADObject/)=true OR match_regex(cmd_line, /(?i)Set-DomainObjectOwner/)=true OR match_regex(cmd_line, /(?i)Set-MasterBootRecord/)=true ) + + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1098 | Account Manipulation | Persistence | +| T1207 | Rogue Domain Controller | Defense Evasion | +| T1484 | Domain Policy Modification | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Privilege Elevation and Persistence via PowerSploit modules +This detection identifies access to PowerSploit modules that illegaly elevate general privileges or ensure persistence, e.g., enable manipulation of registry, task scheduling, persistent WMI, access to OS objects under desired identities. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1053](https://attack.mitre.org/techniques/T1053/), [T1134](https://attack.mitre.org/techniques/T1134/), [T1548](https://attack.mitre.org/techniques/T1548/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Add-DomainObjectAcl/)=true OR match_regex(cmd_line, /(?i)Add-ObjectAcl/)=true OR match_regex(cmd_line, /(?i)Enable-Privilege/)=true OR match_regex(cmd_line, /(?i)New-ElevatedPersistenceOption/)=true OR match_regex(cmd_line, /(?i)New-UserPersistenceOption/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053 | Scheduled Task/Job | Execution, Persistence, Privilege Escalation | +| T1134 | Access Token Manipulation | Defense Evasion, Privilege Escalation | +| T1548 | Abuse Elevation Control Mechanism | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Privilege Elevation via Mimikatz modules +This detection identifies use of Mimikatz modules for illegal privilege elevation. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1134](https://attack.mitre.org/techniques/T1134/), [T1548](https://attack.mitre.org/techniques/T1548/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)privilege::debug/)=true OR match_regex(cmd_line, /(?i)token::elevate/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1134 | Access Token Manipulation | Defense Evasion, Privilege Escalation | +| T1548 | Abuse Elevation Control Mechanism | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Service and Process Control via Mimikatz modules +This detection identifies use of Mimikatz modules for illegal control over services and processes, including the authentication service. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1055](https://attack.mitre.org/techniques/T1055/), [T1106](https://attack.mitre.org/techniques/T1106/), [T1569](https://attack.mitre.org/techniques/T1569/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)process::start/)=true OR match_regex(cmd_line, /(?i)service::\+/)=true OR match_regex(cmd_line, /(?i)service::\-/)=true OR match_regex(cmd_line, /(?i)service::start/)=true OR match_regex(cmd_line, /(?i)service::stop/)=true OR match_regex(cmd_line, /(?i)service::suspend/)=true OR match_regex(cmd_line, /(?i)misc::memssp/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1055 | Process Injection | Defense Evasion, Privilege Escalation | +| T1106 | Native API | Execution | +| T1569 | System Services | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Illegal Service and Process Control via PowerSploit modules +This detection identifies access to PowerSploit modules that enable illegal control of services and processes, such as installing or spoofing of malicious services, injecting malicious code in DLLs and EXEs, invoking shell code and WMI commands, modifying access to service objects, etc. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1055](https://attack.mitre.org/techniques/T1055/), [T1106](https://attack.mitre.org/techniques/T1106/), [T1569](https://attack.mitre.org/techniques/T1569/) +- **Last Updated**: 2020-11-09 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Install-SSP/)=true OR match_regex(cmd_line, /(?i)Set-CriticalProcess/)=true OR match_regex(cmd_line, /(?i)Install-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Restore-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Write-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Set-ServiceBinaryPath/)=true OR match_regex(cmd_line, /(?i)Invoke-ReflectivePEInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-DllInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-ServiceAbuse/)=true OR match_regex(cmd_line, /(?i)Invoke-Shellcode/)=true OR match_regex(cmd_line, /(?i)Invoke-WScriptUACBypass/)=true OR match_regex(cmd_line, /(?i)Invoke-WmiCommand/)=true OR match_regex(cmd_line, /(?i)Write-HijackDll/)=true OR match_regex(cmd_line, /(?i)Add-ServiceDacl/)=true ) + + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1055 | Process Injection | Defense Evasion, Privilege Escalation | +| T1106 | Native API | Execution | +| T1569 | System Services | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kerberoasting spn request with RC4 encryption +This search detects a potential kerberoasting attack via service principal name requests + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1558.003](https://attack.mitre.org/techniques/T1558.003/) +- **Last Updated**: 2020-10-16 + +
+ details + +#### Search +``` +`wineventlog_security` EventCode=4769 Ticket_Options=0x40810000 Ticket_Encryption_Type=0x17 +| stats count min(_time) as firstTime max(_time) as lastTime by dest, service, service_id, Ticket_Encryption_Type, Ticket_Options +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `kerberoasting_spn_request_with_rc4_encryption_filter` +``` +#### Associated Analytic Story + +* Lateral Movement + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, and include the windows security event logs that contain kerberos + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1558.003 | Kerberoasting | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Older systems that support kerberos RC4 by default NetApp may generate false positives + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1208/T1208.md + +* https://www.trimarcsecurity.com/post/trimarcresearch-detecting-kerberoasting-activity + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1558.003/atomic_red_team/windows-security.log + + +_version_: 3 +
+ +--- + +### Kubernetes AWS detect RBAC authorization by account +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding top to see both extremes of RBAC by accounts occurrences + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` annotations.authorization.k8s.io/reason=* +| table sourceIPs{} user.username userAgent annotations.authorization.k8s.io/reason +| stats count by user.username annotations.authorization.k8s.io/reason +| rare user.username annotations.authorization.k8s.io/reason +|`kubernetes_aws_detect_rbac_authorization_by_account_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes AWS detect most active service accounts by pod +This search provides information on Kubernetes service accounts,accessing pods by IP address, verb and decision + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` user.groups{}=system:serviceaccounts objectRef.resource=pods +| table sourceIPs{} user.username userAgent verb annotations.authorization.k8s.io/decision +| top sourceIPs{} user.username verb annotations.authorization.k8s.io/decision +|`kubernetes_aws_detect_most_active_service_accounts_by_pod_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all service accounts interactions are malicious. Analyst must consider IP, verb and decision context when trying to detect maliciousness. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes AWS detect sensitive role access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` objectRef.resource=clusterroles OR clusterrolebindings sourceIPs{}!=::1 sourceIPs{}!=127.0.0.1 +| table sourceIPs{} user.username user.groups{} objectRef.namespace requestURI annotations.authorization.k8s.io/reason +| dedup user.username user.groups{} +|`kubernetes_aws_detect_sensitive_role_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive role resource access is necessary for cluster operation, however source IP, namespace and user group may indicate possible malicious use. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes AWS detect service accounts forbidden failure access +This search provides information on Kubernetes service accounts with failure or forbidden access status, this search can be extended by using top or rare operators to find trends or rarities in failure status, user agents, source IPs and request URI + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` user.groups{}=system:serviceaccounts responseStatus.status = Failure +| table sourceIPs{} user.username userAgent verb responseStatus.status requestURI +| `kubernetes_aws_detect_service_accounts_forbidden_failure_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes AWS detect suspicious kubectl calls +This search provides information on anonymous Kubectl calls with IP, verb namespace and object access context + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` userAgent=kubectl* sourceIPs{}!=127.0.0.1 sourceIPs{}!=::1 src_user=system:anonymous +| table src_ip src_user verb userAgent requestURI +| stats count by src_ip src_user verb userAgent requestURI +|`kubernetes_aws_detect_suspicious_kubectl_calls_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Kubectl calls are not malicious by nature. However source IP, verb and Object can reveal potential malicious activity, specially anonymous suspicious IPs and sensitive objects such as configmaps or secrets + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect RBAC authorization by account +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding rare or top to see both extremes of RBAC by accounts occurrences + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-26 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search annotations.authorization.k8s.io/reason=* +| table sourceIPs{} user.username userAgent annotations.authorization.k8s.io/reason +|stats count by user.username annotations.authorization.k8s.io/reason +| rare user.username annotations.authorization.k8s.io/reason +|`kubernetes_azure_detect_rbac_authorization_by_account_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect most active service accounts by pod namespace +This search provides information on Kubernetes service accounts,accessing pods and namespaces by IP address and verb + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-26 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search user.groups{}=system:serviceaccounts* OR user.username=system.anonymous OR annotations.authorization.k8s.io/decision=allow +| table sourceIPs{} user.username userAgent verb responseStatus.reason responseStatus.status properties.pod objectRef.namespace +| top sourceIPs{} user.username verb responseStatus.status properties.pod objectRef.namespace +|`kubernetes_azure_detect_most_active_service_accounts_by_pod_namespace_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all service accounts interactions are malicious. Analyst must consider IP and verb context when trying to detect maliciousness. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect sensitive object access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search objectRef.resource=secrets OR configmaps user.username=system.anonymous OR annotations.authorization.k8s.io/decision=allow +|table user.username user.groups{} objectRef.resource objectRef.namespace objectRef.name annotations.authorization.k8s.io/reason +|dedup user.username user.groups{} +|`kubernetes_azure_detect_sensitive_object_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect sensitive role access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search objectRef.resource=clusterroles OR clusterrolebindings +| table sourceIPs{} user.username user.groups{} objectRef.namespace requestURI annotations.authorization.k8s.io/reason +| dedup user.username user.groups{} +|`kubernetes_azure_detect_sensitive_role_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive role resource access is necessary for cluster operation, however source IP, namespace and user group may indicate possible malicious use. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect service accounts forbidden failure access +This search provides information on Kubernetes service accounts with failure or forbidden access status + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search user.groups{}=system:serviceaccounts* responseStatus.reason=Forbidden +| table sourceIPs{} user.username userAgent verb responseStatus.reason responseStatus.status properties.pod objectRef.namespace +|`kubernetes_azure_detect_service_accounts_forbidden_failure_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure detect suspicious kubectl calls +This search provides information on rare Kubectl calls with IP, verb namespace and object access context + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-26 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| spath input=responseObject.metadata.annotations.kubectl.kubernetes.io/last-applied-configuration +| search userAgent=kubectl* sourceIPs{}!=127.0.0.1 sourceIPs{}!=::1 +| table sourceIPs{} verb userAgent user.groups{} objectRef.resource objectRef.namespace requestURI +| rare sourceIPs{} verb userAgent user.groups{} objectRef.resource objectRef.namespace requestURI +|`kubernetes_azure_detect_suspicious_kubectl_calls_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Kubectl calls are not malicious by nature. However source IP, verb and Object can reveal potential malicious activity, specially suspicious IPs and sensitive objects such as configmaps or secrets + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure pod scan fingerprint +This search provides information of unauthenticated requests via source IP user agent, request URI and response status data against Kubernetes cluster pod in Azure + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search responseStatus.code=401 +| table sourceIPs{} userAgent verb requestURI responseStatus.reason properties.pod +|`kubernetes_azure_pod_scan_fingerprint_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but source IPs, userAgent, verb, request URI and response status will provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes Azure scan fingerprint +This search provides information of unauthenticated requests via source IP user agent, request URI and response status data against Kubernetes cluster in Azure + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-05-19 + +
+ details + +#### Search +``` +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search responseStatus.code=401 +| table sourceIPs{} userAgent verb requestURI responseStatus.reason +|`kubernetes_azure_scan_fingerprint_filter` +``` +#### Associated Analytic Story + +* Kubernetes Scanning Activity + + +#### How To Implement +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + + +#### Kill Chain Phase + +* Reconnaissance + + +#### Known False Positives +Not all unauthenticated requests are malicious, but source IPs, userAgent, verb, request URI and response status will provide context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect RBAC authorizations by account +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding top to see both extremes of RBAC by accounts occurrences + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-07-11 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.labels.authorization.k8s.io/reason=ClusterRoleBinding OR Clusterrole +| table src_ip src_user data.labels.authorization.k8s.io/decision data.labels.authorization.k8s.io/reason +| rare src_user data.labels.authorization.k8s.io/reason +|`kubernetes_gcp_detect_rbac_authorizations_by_account_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk AWS add on for GCP. This search works with pubsub messaging service logs + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect most active service accounts by pod +This search provides information on Kubernetes service accounts,accessing pods by IP address, verb and decision + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-07-10 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.request.spec.group{}=system:serviceaccounts +| table src_ip src_user http_user_agent data.protoPayload.request.spec.nonResourceAttributes.verb data.labels.authorization.k8s.io/decision data.protoPayload.response.spec.resourceAttributes.resource +| top src_ip src_user http_user_agent data.labels.authorization.k8s.io/decision data.protoPayload.response.spec.resourceAttributes.resource +|`kubernetes_gcp_detect_most_active_service_accounts_by_pod_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk GCP add on. This search works with pubsub messaging service logs + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all service accounts interactions are malicious. Analyst must consider IP, verb and decision context when trying to detect maliciousness. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect sensitive object access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmaps or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-07-11 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.authorizationInfo{}.resource=configmaps OR secrets +| table data.protoPayload.requestMetadata.callerIp src_user data.resource.labels.cluster_name data.protoPayload.request.metadata.namespace data.labels.authorization.k8s.io/decision +| dedup data.protoPayload.requestMetadata.callerIp src_user data.resource.labels.cluster_name +|`kubernetes_gcp_detect_sensitive_object_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install splunk add on for GCP . This search works with pubsub messaging service logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect sensitive role access +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-07-11 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.labels.authorization.k8s.io/reason=ClusterRoleBinding OR Clusterrole dest=apis/rbac.authorization.k8s.io/v1 src_ip!=::1 +| table src_ip src_user http_user_agent data.labels.authorization.k8s.io/decision data.labels.authorization.k8s.io/reason +| dedup src_ip src_user +|`kubernetes_gcp_detect_sensitive_role_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Role Activity + + +#### How To Implement +You must install splunk add on for GCP. This search works with pubsub messaging servicelogs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sensitive role resource access is necessary for cluster operation, however source IP, user agent, decision and reason may indicate possible malicious use. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect service accounts forbidden failure access +This search provides information on Kubernetes service accounts with failure or forbidden access status, this search can be extended by using top or rare operators to find trends or rarities in failure status, user agents, source IPs and request URI + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-06-23 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` system:serviceaccounts data.protoPayload.response.status.allowed!=* +| table src_ip src_user http_user_agent data.protoPayload.response.spec.resourceAttributes.namespace data.resource.labels.cluster_name data.protoPayload.response.spec.resourceAttributes.verb data.protoPayload.request.status.allowed data.protoPayload.response.status.reason data.labels.authorization.k8s.io/decision +| dedup src_ip src_user +| `kubernetes_gcp_detect_service_accounts_forbidden_failure_access_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install splunk add on for GCP. This search works with pubsub messaging service logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Kubernetes GCP detect suspicious kubectl calls +This search provides information on anonymous Kubectl calls with IP, verb namespace and object access context + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-07-11 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` data.protoPayload.requestMetadata.callerSuppliedUserAgent=kubectl* src_user=system:unsecured OR src_user=system:anonymous +| table src_ip src_user data.protoPayload.requestMetadata.callerSuppliedUserAgent data.protoPayload.authorizationInfo{}.granted object_path +|dedup src_ip src_user +|`kubernetes_gcp_detect_suspicious_kubectl_calls_filter` +``` +#### Associated Analytic Story + +* Kubernetes Sensitive Object Access Activity + + +#### How To Implement +You must install splunk add on for GCP. This search works with pubsub messaging logs. + +#### Required field + + + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Kubectl calls are not malicious by nature. However source IP, source user, user agent, object path, and authorization context can reveal potential malicious activity, specially anonymous suspicious IPs and sensitive objects such as configmaps or secrets + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Large Volume of DNS ANY Queries +The search is used to identify attempts to use your DNS Infrastructure for DDoS purposes via a DNS amplification attack leveraging ANY queries. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1498.002](https://attack.mitre.org/techniques/T1498.002/) +- **Last Updated**: 2017-09-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" "DNS.record_type"="ANY" by "DNS.dest" +| `drop_dm_object_name("DNS")` +| where count>200 +| `large_volume_of_dns_any_queries_filter` +``` +#### Associated Analytic Story + +* DNS Amplification Attacks + + +#### How To Implement +To successfully implement this search you must ensure that DNS data is populating the Network_Resolution data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1498.002 | Reflection Amplification | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Legitimate ANY requests may trigger this search, however it is unusual to see a large volume of them under typical circumstances. You may modify the threshold in the search to better suit your environment. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### MacOS - Re-opened Applications +This search looks for processes referencing the plist files that determine which applications are re-opened when a user reboots their machine. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2020-02-07 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process="*com.apple.loginwindow*" by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `macos___re_opened_applications_filter` +``` +#### Associated Analytic Story + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest process data from your osquery deployed agents with the [splunk.conf](https://github.com/splunk/TA-osquery/blob/master/config/splunk.conf) pack enabled. Also the [TA-OSquery](https://github.com/splunk/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the data populate the Endpoint data model. + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + +* Command and Control + + +#### Known False Positives +At this stage, there are no known false positives. During testing, no process events refering the com.apple.loginwindow.plist files were observed during normal operation of re-opening applications on reboot. Therefore, it can be asumed that any occurences of this in the process events would be worth investigating. In the event that the legitimate modification by the system of these files is in fact logged to the process log, then the process_name of that process can be added to an allow list. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Malicious PowerShell Process - Connect To Internet With Hidden Window +This search looks for PowerShell processes started with parameters to modify the execution policy of the run, run in a hidden window, and connect to the Internet. This combination of command-line options is suspicious because it's overriding the default PowerShell execution policy, attempts to hide its activity from the user, and connects to the Internet. Deprecated becaue hidden is not needed when download file with System.Net.WebClient. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2020-11-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe Processes.process=*-WindowStyle* Processes.process=*hidden* Processes.process="*New-Object*" by Processes.user Processes.process_name Processes.parent_process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___connect_to_internet_with_hidden_window_filter` +``` +#### Associated Analytic Story + +* Malicious PowerShell + +* Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Legitimate process can have this combination of command-line options, but it's not common. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/hidden_powershell/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Malicious PowerShell Process - Encoded Command +This search looks for PowerShell processes that have encoded the script within the command-line. Malware has been seen using this parameter, as it obfuscates the code and makes it relatively easy to pass a script on the command-line. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1027](https://attack.mitre.org/techniques/T1027/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = powershell.exe (Processes.process=*-EncodedCommand* OR Processes.process=*-enc*) by Processes.user Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___encoded_command_filter` +``` +#### Associated Analytic Story + +* Malicious PowerShell + +* Sunburst Malware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1027 | Obfuscated Files or Information | Defense Evasion | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +System administrators may use this option, but it's not common. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1027/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Malicious PowerShell Process - Execution Policy Bypass +This search looks for PowerShell processes started with parameters used to bypass the local execution policy for scripts. These parameters are often observed in attacks leveraging PowerShell scripts as they override the default PowerShell execution policy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process_id) as process_id, values(Processes.parent_process_id) as parent_process_id values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe (Processes.process="* -ex*" OR Processes.process="* bypass *") by Processes.process_id, Processes.user, Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___execution_policy_bypass_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +There may be legitimate reasons to bypass the PowerShell execution policy. The PowerShell script being run with this parameter should be validated to ensure that it is legitimate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/encoded_powershell/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Malicious PowerShell Process - Multiple Suspicious Command-Line Arguments +This search looks for PowerShell processes started with a base64 encoded command-line passed to it, with parameters to modify the execution policy for the process, and those that prevent the display of an interactive prompt to the user. This combination of command-line options is suspicious because it overrides the default PowerShell execution policy, attempts to hide itself from the user, and passes an encoded script to be run on the command-line. Deprecated because almost the same as Malicious PowerShell Process - Encoded Command + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2021-01-19 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search (process=*-EncodedCommand* OR process=*-enc*) process=*-Exec* +| `malicious_powershell_process___multiple_suspicious_command_line_arguments_filter` +``` +#### Associated Analytic Story + +* Malicious PowerShell + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +Legitimate process can have this combination of command-line options, but it's not common. + +#### Reference + + +#### Test Dataset + + +_version_: 6 +
+ +--- + +### Malicious PowerShell Process With Obfuscation Techniques +This search looks for PowerShell processes launched with arguments that have characters indicative of obfuscation on the command-line. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2021-01-19 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest Processes.process +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval num_obfuscation = (mvcount(split(process,"`"))-1) + (mvcount(split(process, "^"))-1) + (mvcount(split(process, "'"))-1) +| `malicious_powershell_process_with_obfuscation_techniques_filter` +| search num_obfuscation > 10 +``` +#### Associated Analytic Story + +* Malicious PowerShell + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | + + +#### Kill Chain Phase + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +These characters might be legitimately on the command-line, but it is not common. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/obfuscated_powershell/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Monitor DNS For Brand Abuse +This search looks for DNS requests for faux domains similar to the domains that you want to have monitored for abuse. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: +- **Last Updated**: 2017-09-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(DNS.answer) as IPs min(_time) as firstTime from datamodel=Network_Resolution by DNS.src, DNS.query +| `drop_dm_object_name("DNS")` +| `security_content_ctime(firstTime)` +| `brand_abuse_dns` +| `monitor_dns_for_brand_abuse_filter` +``` +#### Associated Analytic Story + +* Brand Monitoring + + +#### How To Implement +You need to ingest data from your DNS logs. Specifically you must ingest the domain that is being queried and the IP of the host originating the request. Ideally, you should also be ingesting the answer to the query and the query type. This approach allows you to also create your own localized passive DNS capability which can aid you in future investigations. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + +* Actions on Objectives + + +#### Known False Positives +None at this time + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Monitor Email For Brand Abuse +This search looks for emails claiming to be sent from a domain similar to one that you want to have monitored for abuse. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email +- **ATT&CK**: +- **Last Updated**: 2018-01-05 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(All_Email.recipient) as recipients, min(_time) as firstTime, max(_time) as lastTime from datamodel=Email by All_Email.src_user, All_Email.message_id +| `drop_dm_object_name("All_Email")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval temp=split(src_user, "@") +| eval email_domain=mvindex(temp, 1) +| lookup update=true brandMonitoring_lookup domain as email_domain OUTPUT domain_abuse +| search domain_abuse=true +| table message_id, src_user, email_domain, recipients, firstTime, lastTime +| `monitor_email_for_brand_abuse_filter` +``` +#### Associated Analytic Story + +* Brand Monitoring + +* Suspicious Emails + + +#### How To Implement +You need to ingest email header data. Specifically the sender's address (src_user) must be populated. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +None at this time + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Monitor Registry Keys for Print Monitors +This search looks for registry activity associated with modifications to the registry key `HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors`. In this scenario, an attacker can load an arbitrary .dll into the print-monitor registry by giving the full path name to the after.dll. The system will execute the .dll with elevated (SYSTEM) permissions and will persist after reboot. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1547.010](https://attack.mitre.org/techniques/T1547.010/) +- **Last Updated**: 2020-11-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.action=modified AND Registry.registry_path="*CurrentControlSet\\Control\\Print\\Monitors*" by Registry.dest, Registry.registry_key_name Registry.user Registry.registry_path Registry.registry_value_name Registry.action +| `drop_dm_object_name(Registry)` +| `monitor_registry_keys_for_print_monitors_filter` +``` +#### Associated Analytic Story + +* Suspicious Windows Registry Activities + +* Windows Persistence Techniques + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report registry modifications. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1547.010 | Port Monitors | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +You will encounter noise from legitimate print-monitor registry entries. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1547.010/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Monitor Web Traffic For Brand Abuse +This search looks for Web requests to faux domains similar to the one that you want to have monitored for abuse. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: +- **Last Updated**: 2017-09-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Web.url) as urls min(_time) as firstTime from datamodel=Web by Web.src +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `brand_abuse_web` +| `monitor_web_traffic_for_brand_abuse_filter` +``` +#### Associated Analytic Story + +* Brand Monitoring + + +#### How To Implement +You need to ingest data from your web traffic. This can be accomplished by indexing data from a web proxy, or using a network traffic analysis tool, such as Bro or Splunk Stream. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +None at this time + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### More than usual number of LOLBAS applications in short time period +Attacker activity may compromise executing several LOLBAS applications in conjunction to accomplish their objectives. We are looking for more than usual LOLBAS applications over a window of time, by building profiles per machine. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1059](https://attack.mitre.org/techniques/T1059/), [T1053](https://attack.mitre.org/techniques/T1053/) +- **Last Updated**: 2020-08-25 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval device=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| where process_name=="regsvcs.exe" OR process_name=="ftp.exe" OR process_name=="dfsvc.exe" OR process_name=="rasautou.exe" OR process_name=="schtasks.exe" OR process_name=="xwizard.exe" OR process_name=="findstr.exe" OR process_name=="esentutl.exe" OR process_name=="cscript.exe" OR process_name=="reg.exe" OR process_name=="csc.exe" OR process_name=="atbroker.exe" OR process_name=="print.exe" OR process_name=="pcwrun.exe" OR process_name=="vbc.exe" OR process_name=="rpcping.exe" OR process_name=="wsreset.exe" OR process_name=="ilasm.exe" OR process_name=="certutil.exe" OR process_name=="replace.exe" OR process_name=="mshta.exe" OR process_name=="bitsadmin.exe" OR process_name=="wscript.exe" OR process_name=="ieexec.exe" OR process_name=="cmd.exe" OR process_name=="microsoft.workflow.compiler.exe" OR process_name=="runscripthelper.exe" OR process_name=="makecab.exe" OR process_name=="forfiles.exe" OR process_name=="desktopimgdownldr.exe" OR process_name=="control.exe" OR process_name=="msbuild.exe" OR process_name=="register-cimprovider.exe" OR process_name=="tttracer.exe" OR process_name=="ie4uinit.exe" OR process_name=="sc.exe" OR process_name=="bash.exe" OR process_name=="hh.exe" OR process_name=="cmstp.exe" OR process_name=="mmc.exe" OR process_name=="jsc.exe" OR process_name=="scriptrunner.exe" OR process_name=="odbcconf.exe" OR process_name=="extexport.exe" OR process_name=="msdt.exe" OR process_name=="diskshadow.exe" OR process_name=="extrac32.exe" OR process_name=="eventvwr.exe" OR process_name=="mavinject.exe" OR process_name=="regasm.exe" OR process_name=="gpscript.exe" OR process_name=="rundll32.exe" OR process_name=="regsvr32.exe" OR process_name=="regedit.exe" OR process_name=="msiexec.exe" OR process_name=="gfxdownloadwrapper.exe" OR process_name=="presentationhost.exe" OR process_name=="regini.exe" OR process_name=="wmic.exe" OR process_name=="runonce.exe" OR process_name=="syncappvpublishingserver.exe" OR process_name=="verclsid.exe" OR process_name=="psr.exe" OR process_name=="infdefaultinstall.exe" OR process_name=="explorer.exe" OR process_name=="expand.exe" OR process_name=="installutil.exe" OR process_name=="netsh.exe" OR process_name=="wab.exe" OR process_name=="dnscmd.exe" OR process_name=="at.exe" OR process_name=="pcalua.exe" OR process_name=="cmdkey.exe" OR process_name=="msconfig.exe" +| stats count(process_name) as lolbas_counter by device,span(timestamp, 300s) +| eval lolbas_counter=lolbas_counter*1.0 +| rename window_end as timestamp +| adaptive_threshold algorithm="quantile" value="lolbas_counter" entity="device" window=2419200000L +| where label AND quantile>0.99 +| eval start_time = window_start, end_time = timestamp, entities = mvappend(device), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +Collect endpoint data such as sysmon or 4688 events. + +#### Required field + +* dest_device_id + +* _time + +* process_name + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059 | Command and Scripting Interpreter | Execution | +| T1053 | Scheduled Task/Job | Execution, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Some administrative tasks may involve multiple use of LOLBAS applications in a short period of time. This might trigger false positives at the beginning when it hasn't collected yet enough data to construct the baseline. + + +#### Reference + +* https://github.com/LOLBAS-Project/LOLBAS/tree/master/yml/OSBinaries + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Multiple Okta Users With Invalid Credentials From The Same IP +This search detects Okta login failures due to bad credentials for multiple users originating from the same ip address. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.001](https://attack.mitre.org/techniques/T1078.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`okta` outcome.reason=INVALID_CREDENTIALS +| rename client.geographicalContext.country as country, client.geographicalContext.state as state, client.geographicalContext.city as city +| stats min(_time) as firstTime max(_time) as lastTime dc(user) as distinct_users values(user) as users by src_ip, displayMessage, outcome.reason, country, state, city +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search distinct_users > 5 +| `multiple_okta_users_with_invalid_credentials_from_the_same_ip_filter` +``` +#### Associated Analytic Story + +* Suspicious Okta Activity + + +#### How To Implement +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.001 | Default Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +A single public IP address servicing multiple legitmate users may trigger this search. In addition, the threshold of 5 distinct users may be too low for your needs. You may modify the included filter macro `multiple_okta_users_with_invalid_credentials_from_the_same_ip_filter` to raise the threshold or except specific IP adresses from triggering this search. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### NLTest Domain Trust Discovery +This search looks for the execution of `nltest.exe` with command-line arguments utilized to query for Domain Trust information. Two arguments `/domain trusts`, returns a list of trusted domains, and `/all_trusts`, returns all trusted domains. Red Teams and adversaries alike use NLTest.exe to enumerate the current domain to assist with further understanding where to pivot next. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1482](https://attack.mitre.org/techniques/T1482/) +- **Last Updated**: 2021-01-25 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=nltest.exe OR Processes.process_name!=nltest.exe) (Processes.process=*/domain_trusts* OR Processes.process=*/all_trusts*) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `nltest_domain_trust_discovery_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1482 | Domain Trust Discovery | Discovery | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Administrators may use nltest for troubleshooting purposes, otherwise, rarely used. + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1482/T1482.md + +* https://malware.news/t/lets-learn-trickbot-implements-network-collector-module-leveraging-cmd-wmi-ldap/19104 + +* https://attack.mitre.org/techniques/T1482/ + +* https://www.owasp.org/images/4/4b/Red_Team_Operating_in_a_Modern_Environment.pdf + +* https://ss64.com/nt/nltest.html + +* https://redcanary.com/threat-detection-report/techniques/domain-trust-discovery/ + +* https://thedfirreport.com/2020/10/08/ryuks-return/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1482/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### New container uploaded to AWS ECR +This searches show information on uploaded containers including source user, image id, source IP user type, http user agent, region, first time, last time of operation (PutImage). These searches are based on Cloud Infrastructure Data Model. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1525](https://attack.mitre.org/techniques/T1525/) +- **Last Updated**: 2020-02-20 + +
+ details + +#### Search +``` + +| tstats count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Cloud_Infrastructure.Compute where Compute.user_type!="AssumeRole" AND Compute.http_user_agent="AWS Internal" AND Compute.event_name="PutImage" by Compute.image_id Compute.src_user Compute.src Compute.region Compute.msg Compute.user_type +| `drop_dm_object_name("Compute")` +| `new_container_uploaded_to_aws_ecr_filter` +``` +#### Associated Analytic Story + +* Container Implantation Monitoring and Investigation + + +#### How To Implement +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You must also install Cloud Infrastructure data model. Please also customize the `container_implant_aws_detection_filter` macro to filter out the false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1525 | Implant Container Image | Persistence | + + +#### Kill Chain Phase + + +#### Known False Positives +Uploading container is a normal behavior from developers or users with access to container registry. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### No Windows Updates in a time frame +This search looks for Windows endpoints that have not generated an event indicating a successful Windows update in the last 60 days. Windows updates are typically released monthly and applied shortly thereafter. An endpoint that has not successfully applied an update in this time frame indicates the endpoint is not regularly being patched for some reason. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Updates +- **ATT&CK**: +- **Last Updated**: 2017-09-15 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` max(_time) as lastTime from datamodel=Updates where Updates.status=Installed Updates.vendor_product="Microsoft Windows" by Updates.dest Updates.status Updates.vendor_product +| rename Updates.dest as Host +| rename Updates.status as "Update Status" +| rename Updates.vendor_product as Product +| eval isOutlier=if(lastTime <= relative_time(now(), "-60d@d"), 1, 0) +| `security_content_ctime(lastTime)` +| search isOutlier=1 +| rename lastTime as "Last Update Time", +| table Host, "Update Status", Product, "Last Update Time" +| `no_windows_updates_in_a_time_frame_filter` +``` +#### Associated Analytic Story + +* Monitor for Updates + + +#### How To Implement +To successfully implement this search, it requires that the 'Update' data model is being populated. This can be accomplished by ingesting Windows events or the Windows Update log via a universal forwarder on the Windows endpoints you wish to monitor. The Windows add-on should be also be installed and configured to properly parse Windows events in Splunk. There may be other data sources which can populate this data model, including vulnerability management systems. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Ntdsutil export ntds +Monitor for signs that Ntdsutil is being used to Extract Active Directory database - NTDS.dit, typically used for offline password cracking. It may be used in normal circumstances with no command line arguments or shorthand variations of more common arguments. Ntdsutil.exe is typically seen run on a Windows Server. Typical command used to dump ntds.dit \ +ntdsutil "ac i ntds" "ifm" "create full C:\Temp" q q \ +This technique uses "Install from Media" (IFM), which will extract a copy of the Active Directory database. A successful export of the Active Directory database will yield a file modification named ntds.dit to the destination. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.003](https://attack.mitre.org/techniques/T1003.003/) +- **Last Updated**: 2021-01-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=ntdsutil.exe Processes.process=*ntds* Processes.process=*create*) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `ntdsutil_export_ntds_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.003 | NTDS | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Highly possible Server Administrators will troubleshoot with ntdsutil.exe, generating false positives. + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.003/T1003.003.md#atomic-test-3---dump-active-directory-database-with-ntdsutil + +* https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc753343(v=ws.11) + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + +* https://strontic.github.io/xcyclopedia/library/vss_ps.dll-97B15BDAE9777F454C9A6BA25E938DB3.html + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### O365 Add App Role Assignment Grant User +This search detects the creation of a new Federation setting by alerting about an specific event related to its creation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1136.003](https://attack.mitre.org/techniques/T1136.003/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`o365_management_activity` Workload=AzureActiveDirectory Operation="Add app role assignment grant to user." +| stats count min(_time) as firstTime max(_time) as lastTime values(Actor{}.ID) as Actor.ID values(Actor{}.Type) as Actor.Type by ActorIpAddress dest ResultStatus +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_add_app_role_assignment_grant_user_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.003 | Cloud Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +The creation of a new Federation is not necessarily malicious, however this events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a different cloud provider. + +#### Reference + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_new_federation/o365_new_federation.json + + +_version_: 1 +
+ +--- + +### O365 Added Service Principal +This search detects the creation of a new Federation setting by alerting about an specific event related to its creation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1136.003](https://attack.mitre.org/techniques/T1136.003/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`o365_management_activity` Workload=AzureActiveDirectory signature="Add service principal credentials." +| stats min(_time) as firstTime max(_time) as lastTime values(Actor{}.ID) as Actor.ID values(ModifiedProperties{}.Name) as ModifiedProperties.Name values(ModifiedProperties{}.NewValue) as ModifiedProperties.NewValue values(Target{}.ID) as Target.ID by ActorIpAddress signature +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_added_service_principal_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.003 | Cloud Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +The creation of a new Federation is not necessarily malicious, however these events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a different cloud provider. + +#### Reference + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.sygnia.co/golden-saml-advisory + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_add_service_principal/o365_add_service_principal.json + + +_version_: 1 +
+ +--- + +### O365 Bypass MFA via Trusted IP +This search detects newly added IP addresses/CIDR blocks to the list of MFA Trusted IPs to bypass multi factor authentication. Attackers are often known to use this technique so that they can bypass the MFA system. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`o365_management_activity` signature="Set Company Information." ModifiedProperties{}.Name=StrongAuthenticationPolicy +| rex max_match=100 field=ModifiedProperties{}.NewValue "(?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2})" +| rex max_match=100 field=ModifiedProperties{}.OldValue "(?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2})" +| eval ip_addresses_old=if(isnotnull(ip_addresses_old),ip_addresses_old,"0") +| mvexpand ip_addresses_new_added +| where isnull(mvfind(ip_addresses_old,ip_addresses_new_added)) +|stats count min(_time) as firstTime max(_time) as lastTime values(ip_addresses_old) as ip_addresses_old by user ip_addresses_new_added signature vendor_product vendor_account status user_id action +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_bypass_mfa_via_trusted_ip_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement +You must install Splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +Unless it is a special case, it is uncommon to continually update Trusted IPs to MFA configuration. + +#### Reference + +* https://i.blackhat.com/USA-20/Thursday/us-20-Bienstock-My-Cloud-Is-APTs-Cloud-Investigating-And-Defending-Office-365.pdf + +* https://attack.mitre.org/techniques/T1562/007/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/o365_bypass_mfa_via_trusted_ip/o365_bypass_mfa_via_trusted_ip.json + + +_version_: 1 +
+ +--- + +### O365 Disable MFA +This search detects when multi factor authentication has been disabled, what entitiy performed the action and against what user + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1556](https://attack.mitre.org/techniques/T1556/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Operation="Disable Strong Authentication." +| stats count earliest(_time) as firstTime latest(_time) as lastTime by UserType Operation user status signature dest ResultStatus +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_disable_mfa_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +Unless it is a special case, it is uncommon to disable MFA or Strong Authentication + +#### Reference + +* https://attack.mitre.org/techniques/T1556/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1556/o365_disable_mfa/o365_disable_mfa.json + + +_version_: 1 +
+ +--- + +### O365 Excessive Authentication Failures Alert +This search detects when an excessive number of authentication failures occur this search also includes attempts against MFA prompt codes + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1110](https://attack.mitre.org/techniques/T1110/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Workload=AzureActiveDirectory UserAuthenticationMethod=* status=Failed +| stats count earliest(_time) as firstTime latest(_time) values(UserAuthenticationMethod) AS UserAuthenticationMethod values(UserAgent) AS UserAgent values(status) AS status values(src_ip) AS src_ip by user +| where count > 10 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_excessive_authentication_failures_alert_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1110 | Brute Force | Credential Access | + + +#### Kill Chain Phase + +* Not Applicable + + +#### Known False Positives +The threshold for alert is above 10 attempts and this should reduce the number of false positives. + +#### Reference + +* https://attack.mitre.org/techniques/T1110/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1110/o365_brute_force_login/o365_brute_force_login.json + + +_version_: 1 +
+ +--- + +### O365 Excessive SSO logon errors +This search detects accounts with high number of Single Sign ON (SSO) logon errors. Excessive logon errors may indicate attempts to bruteforce of password or single sign on token hijack or reuse. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1556](https://attack.mitre.org/techniques/T1556/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`o365_management_activity` Workload=AzureActiveDirectory LogonError=SsoArtifactInvalidOrExpired +| stats count min(_time) as firstTime max(_time) as lastTime by LogonError ActorIpAddress UserAgent UserId +| where count > 5 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_excessive_sso_logon_errors_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +Logon errors may not be malicious in nature however it may indicate attempts to reuse a token or password obtained via credential access attack. + +#### Reference + +* https://stealthbits.com/blog/bypassing-mfa-with-pass-the-cookie/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1556/o365_sso_logon_errors/o365_sso_logon_errors.json + + +_version_: 1 +
+ +--- + +### O365 New Federated Domain Added +This search detects the addition of a new Federated domain. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1136.003](https://attack.mitre.org/techniques/T1136.003/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Search +``` +`o365_management_activity` Workload=Exchange Operation="Add-FederatedDomain" +| stats count min(_time) as firstTime max(_time) as lastTime values(Parameters{}.Value) as Parameters.Value by ObjectId Operation OrganizationName OriginatingServer UserId UserKey +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_new_federated_domain_added_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.003 | Cloud Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +The creation of a new Federated domain is not necessarily malicious, however these events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a similar or different cloud provider. + +#### Reference + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.sygnia.co/golden-saml-advisory + +* https://o365blog.com/post/aadbackdoor/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_new_federated_domain/o365_new_federated_domain.json + + +_version_: 1 +
+ +--- + +### O365 PST export alert +This search detects when a user has performed an Ediscovery search or exported a PST file from the search. This PST file usually has sensitive information including email body content + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1114](https://attack.mitre.org/techniques/T1114/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Category=ThreatManagement Name="eDiscovery search started or exported" +| stats count earliest(_time) as firstTime latest(_time) as lastTime by Source Severity AlertEntityId Operation Name +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_pst_export_alert_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114 | Email Collection | Collection | + + +#### Kill Chain Phase + +* Actions on Objective + + +#### Known False Positives +PST export can be done for legitimate purposes but due to the sensitive nature of its content it must be monitored. + +#### Reference + +* https://attack.mitre.org/techniques/T1114/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114/o365_export_pst_file/o365_export_pst_file.json + + +_version_: 1 +
+ +--- + +### O365 Suspicious Admin Email Forwarding +This search detects when an admin configured a forwarding rule for multiple mailboxes to the same destination. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1114.003](https://attack.mitre.org/techniques/T1114.003/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Operation=Set-Mailbox +| spath input=Parameters +| rename Identity AS src_user +| search ForwardingAddress=* +| stats dc(src_user) AS count_src_user earliest(_time) as firstTime latest(_time) as lastTime values(src_user) AS src_user values(user) AS user by ForwardingAddress +| where count_src_user > 1 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_admin_email_forwarding_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.003 | Email Forwarding Rule | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.003/o365_email_forwarding_rule/o365_email_forwarding_rule.json + + +_version_: 1 +
+ +--- + +### O365 Suspicious Rights Delegation +This search detects the assignment of rights to accesss content from another mailbox. This is usually only assigned to a service account. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1114.002](https://attack.mitre.org/techniques/T1114.002/) +- **Last Updated**: 2020-12-15 + +
+ details + +#### Search +``` +`o365_management_activity` Operation=Add-MailboxPermission +| spath input=Parameters +| rename User AS src_user, Identity AS dest_user +| search AccessRights=FullAccess OR AccessRights=SendAs OR AccessRights=SendOnBehalf +| stats count earliest(_time) as firstTime latest(_time) as lastTime by user src_user dest_user Operation AccessRights +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_rights_delegation_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.002 | Remote Email Collection | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Service Accounts + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.002/suspicious_rights_delegation/suspicious_rights_delegation.json + + +_version_: 1 +
+ +--- + +### O365 Suspicious User Email Forwarding +This search detects when multiple user configured a forwarding rule to the same destination. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1114.003](https://attack.mitre.org/techniques/T1114.003/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` +`o365_management_activity` Operation=Set-Mailbox +| spath input=Parameters +| rename Identity AS src_user +| search ForwardingSmtpAddress=* +| stats dc(src_user) AS count_src_user earliest(_time) as firstTime latest(_time) as lastTime values(src_user) AS src_user values(user) AS user by ForwardingSmtpAddress +| where count_src_user > 1 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_user_email_forwarding_filter` +``` +#### Associated Analytic Story + +* Office 365 Detections + + +#### How To Implement + + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.003 | Email Forwarding Rule | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.003/o365_email_forwarding_rule/o365_email_forwarding_rule.json + + +_version_: 1 +
+ +--- + +### Okta Account Lockout Events +Detect Okta user lockout events + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.001](https://attack.mitre.org/techniques/T1078.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`okta` displayMessage="Max sign in attempts exceeded" +| rename client.geographicalContext.country as country, client.geographicalContext.state as state, client.geographicalContext.city as city +| table _time, user, country, state, city, src_ip +| `okta_account_lockout_events_filter` +``` +#### Associated Analytic Story + +* Suspicious Okta Activity + + +#### How To Implement +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.001 | Default Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +None. Account lockouts should be followed up on to determine if the actual user was the one who caused the lockout, or if it was an unauthorized actor. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Okta Failed SSO Attempts +Detect failed Okta SSO events + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.001](https://attack.mitre.org/techniques/T1078.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`okta` displayMessage="User attempted unauthorized access to app" +| stats min(_time) as firstTime max(_time) as lastTime values(app) as Apps count by user, result ,displayMessage, src_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `okta_failed_sso_attempts_filter` +``` +#### Associated Analytic Story + +* Suspicious Okta Activity + + +#### How To Implement +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.001 | Default Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +There may be a faulty config preventing legitmate users from accessing apps they should have access to. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Okta User Logins From Multiple Cities +This search detects logins from the same user from different cities in a 24 hour period. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.001](https://attack.mitre.org/techniques/T1078.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` +`okta` displayMessage="User login to Okta" client.geographicalContext.city!=null +| stats min(_time) as firstTime max(_time) as lastTime dc(client.geographicalContext.city) as locations values(client.geographicalContext.city) as cities values(client.geographicalContext.state) as states by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `okta_user_logins_from_multiple_cities_filter` +| search locations > 1 +``` +#### Associated Analytic Story + +* Suspicious Okta Activity + + +#### How To Implement +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.001 | Default Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + + +#### Known False Positives +Users in your enviornment may legitmately be travelling and loggin in from different locations. This search is useful for those users that should *not* be travelling for some reason, such as the COVID-19 pandemic. The search also relies on the geographical information being populated in the Okta logs. It is also possible that a connection from another region may be attributed to a login from a remote VPN endpoint. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Open Redirect in Splunk Web +This search allows you to look for evidence of exploitation for CVE-2016-4859, the Splunk Open Redirect Vulnerability. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-09-19 + +
+ details + +#### Search +``` +index=_internal sourcetype=splunk_web_access return_to="/%09/*" +| `open_redirect_in_splunk_web_filter` +``` +#### Associated Analytic Story + +* Splunk Enterprise Vulnerability + + +#### How To Implement +No extra steps needed to implement this search. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Osquery pack - ColdRoot detection +This search looks for ColdRoot events from the osx-attacks osquery pack. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2019-01-29 + +
+ details + +#### Search +``` + +| from datamodel Alerts.Alerts +| search app=osquery:results (name=pack_osx-attacks_OSX_ColdRoot_RAT_Launchd OR name=pack_osx-attacks_OSX_ColdRoot_RAT_Files) +| rename columns.path as path +| bucket _time span=30s +| stats count(path) by _time, host, user, path +| `osquery_pack___coldroot_detection_filter` +``` +#### Associated Analytic Story + +* ColdRoot MacOS RAT + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest data from your osquery deployed agents with the [osx-attacks.conf](https://github.com/facebook/osquery/blob/experimental/packs/osx-attacks.conf#L599) pack enabled. Also the [TA-OSquery](https://github.com/d1vious/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the osquery data populate the Alerts data model + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + +* Command and Control + + +#### Known False Positives +There are no known false positives. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Overwriting Accessibility Binaries +Microsoft Windows contains accessibility features that can be launched with a key combination before a user has logged in. An adversary can modify or replace these programs so they can get a command prompt or backdoor without logging in to the system. This search looks for modifications to these binaries. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1546.008](https://attack.mitre.org/techniques/T1546.008/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem where (Filesystem.file_path=*\\Windows\\System32\\sethc.exe* OR Filesystem.file_path=*\\Windows\\System32\\utilman.exe* OR Filesystem.file_path=*\\Windows\\System32\\osk.exe* OR Filesystem.file_path=*\\Windows\\System32\\Magnify.exe* OR Filesystem.file_path=*\\Windows\\System32\\Narrator.exe* OR Filesystem.file_path=*\\Windows\\System32\\DisplaySwitch.exe* OR Filesystem.file_path=*\\Windows\\System32\\AtBroker.exe*) by Filesystem.file_name Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `overwriting_accessibility_binaries_filter` +``` +#### Associated Analytic Story + +* Windows Privilege Escalation + + +#### How To Implement +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.008 | Accessibility Features | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Microsoft may provide updates to these binaries. Verify that these changes do not correspond with your normal software update cycle. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.008/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Phishing Email Detection by Machine Learning Method - SSA +Malicious mails can conduct phishing that induces readers to open attachment, click links or trigger third party service. This detect uses Natural Language Processing (NLP) approach to analyze an email message's content (Sender, Subject and Body) and judge whether it is a phishing email. The detection adopts a deep learning (neural network) model that employs character level embeddings plus LSTM layers to perform classification. The model is pre-trained and then published as ONNX format. Current sample model is trained using the dataset published at https://github.com/splunk/attack_data/tree/master/datasets/T1566_Phishing_Email/splunk_train.json User are expected to re-train the model by combining with their own training data for better accuracy using the provided model file (SMLE notebook). DSP pipeline then processes the email message and passes it as an event to Apply ML Models function, which returns the probability of a phishing email. Current implementation assumes the email is fed to DSP in JSON format contains at least email's sender, subject and its message body, including reply content, if any. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1566](https://attack.mitre.org/techniques/T1566/) +- **Last Updated**: 2020-08-25 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval eventLine=concat(ucast(map_get(input_event, "From"), "string", " "), " ", ucast(map_get(input_event, "Subject"), "string", " "), " ", ucast(map_get(input_event, "Content"), "string", " "), " "), _time=map_get(input_event, "_time") +| where eventLine IS NOT NULL +| eval mapC={" ": 32, "!": 33, "\"": 34, "#": 35, "$": 36, "%": 37, "&": 38, "`": 39, "(": 40, ")": 41, "*": 42, "+": 43, ",": 44, "-": 45, ".": 46, "/": 47, "0": 48, "1": 49, "2": 50, "3": 51, "4": 52, "5": 53, "6": 54, "7": 55, "8": 56, "9": 57, ":": 58, ";": 59, "<": 60, "=": 61, ">": 62, "?": 63, "@": 64, "A": 65, "B": 66, "C": 67, "D": 68, "E": 69, "F": 70, "G": 71, "H": 72, "I": 73, "J": 74, "K": 75, "L": 76, "M": 77, "N": 78, "O": 79, "P": 80, "Q": 81, "R": 82, "S": 83, "T": 84, "U": 85, "V": 86, "W": 87, "X": 88, "Y": 89, "Z": 90, "[": 91, "\\": 92, "]": 93, "^": 94, "_": 95, "`": 96, "a": 97, "b": 98, "c": 99, "d": 100, "e": 101, "f": 102, "g": 103, "h": 104, "i": 105, "j": 106, "k": 107, "l": 108, "m": 109, "n": 110, "o": 111, "p": 112, "q": 113, "r": 114, "s": 115, "t": 116, "u": 117, "v": 118, "w": 119, "x": 120, "y": 121, "z": 122, "{": 123, " +|": 124, "}": 125, "~": 126}, ml_in = for_each(iterator(mvrange(1,129), "i"), cast(map_get(mapC, substr(eventLine, i, 1)), "float") ) +| apply_model connection_id="YOUR_S3_ONNX_CONNECTOR_ID" name="phishing_email_v8" path="s3://smle-experiments/models/phishing_email" +| eval probability = mvindex(ml_out, 0) +| where probability > 0.5 +| eval start_time=_time, end_time=_time, entities="TBD", body="TBD" +| select probability, body, entities, start_time, end_time +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +Events are fed to DSP contains at least email's sender, subject and its message body. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566 | Phishing | Initial Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Because of imbalance of anomaly data in training, the model will less likely report false positive. Instead, the model is more prone to false negative. Current best recall score is ~85% + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Probing Access with Stolen Credentials via PowerSploit modules +This detection identifies use of PowerSploit modules that facilitate access probing with admin credentials as well as probing access to system services. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-04 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Test-AdminAccess/)=true OR match_regex(cmd_line, /(?i)Invoke-CheckLocalAdminAccess/)=true OR match_regex(cmd_line, /(?i)Test-ServiceDaclPermission/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_user_id + +* dest_device_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Process Creating LNK file in Suspicious Location +This search looks for a process launching an `*.lnk` file under `C:\User*` or `*\Local\Temp\*`. This is common behavior used by various spear phishing tools. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1566.002](https://attack.mitre.org/techniques/T1566.002/) +- **Last Updated**: 2021-01-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.file_name="*.lnk" AND Filesystem.file_path="C:\\Temp*" by _time span=1h Filesystem.process_id Filesystem.file_name Filesystem.file_path Filesystem.file_hash Filesystem.user +| `drop_dm_object_name(Filesystem)` +| rename process_id as lnk_pid +| join lnk_pid, _time [ +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Processes where Processes.process_name=* by _time span=1h Processes.parent_process_id Processes.process_id Processes.process_name Processes.dest Processes.process_path Processes.process +| `drop_dm_object_name(Processes)` +| rename parent_process_id as lnk_pid +| fields _time lnk_pid process_id dest process_name process_path process] +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime, lastTime, lnk_pid, process_id, user, dest, file_name, file_path, process_name, process, process_path, file_hash +| `process_creating_lnk_file_in_suspicious_location_filter` +``` +#### Associated Analytic Story + +* Phishing Payloads + + +#### How To Implement +You must be ingesting data that records filesystem and process activity from your hosts to populate the Endpoint data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.002 | Spearphishing Link | Initial Access | + + +#### Kill Chain Phase + +* Installation + +* Actions on Objectives + + +#### Known False Positives +This detection should yield little or no false positive results. It is uncommon for LNK files to be executed from temporary or user directories. + +#### Reference + +* https://attack.mitre.org/techniques/T1566/001/ + +* https://www.trendmicro.com/en_us/research/17/e/rising-trend-attackers-using-lnk-files-download-malware.html + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1566.002/lnk_file_temp_folder/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Process Execution via WMI +This search looks for processes launched via WMI. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2020-03-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.parent_process_name = *WmiPrvSE.exe by Processes.user Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `process_execution_via_wmi_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, administrators may use wmi to execute commands for legitimate purposes. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Processes Tapping Keyboard Events +This search looks for processes in an MacOS system that is tapping keyboard events in MacOS, and essentially monitoring all keystrokes made by a user. This is a common technique used by RATs to log keystrokes from a victim, although it can also be used by legitimate processes like Siri to react on human input + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2019-01-25 + +
+ details + +#### Search +``` + +| from datamodel Alerts.Alerts +| search app=osquery:results name=pack_osx-attacks_Keyboard_Event_Taps +| rename columns.cmdline as cmd, columns.name as process_name, columns.pid as process_id +| dedup host,process_name +| table host,process_name, cmd, process_id +| `processes_tapping_keyboard_events_filter` +``` +#### Associated Analytic Story + +* ColdRoot MacOS RAT + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest data from your osquery deployed agents with the [osx-attacks.conf](https://github.com/facebook/osquery/blob/experimental/packs/osx-attacks.conf#L599) pack enabled. Also the [TA-OSquery](https://github.com/d1vious/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the osquery data populate the Alerts data model. + +#### Required field + + + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +There might be some false positives as keyboard event taps are used by processes like Siri and Zoom video chat, for some good examples of processes to exclude please see [this](https://github.com/facebook/osquery/pull/5345#issuecomment-454639161) comment. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Processes created by netsh +This search looks for processes launching netsh.exe to execute various commands via the netsh command-line utility. Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh can be used as a persistence proxy technique to execute a helper .dll when netsh.exe is executed. In this search, we are looking for processes spawned by netsh.exe that are executing commands via the command line. Deprecated because we have another detection of the same type. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.004](https://attack.mitre.org/techniques/T1562.004/) +- **Last Updated**: 2020-11-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=netsh.exe by Processes.user Processes.dest Processes.parent_process Processes.parent_process_name Processes.process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `processes_created_by_netsh_filter` +``` +#### Associated Analytic Story + +* Netsh Abuse + + +#### How To Implement +To successfully implement this search, you must be ingesting logs with the process name, command-line arguments, and parent processes from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.004 | Disable or Modify System Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It is unusual for netsh.exe to have any child processes in most environments. It makes sense to investigate the child process and verify whether the process spawned is legitimate. We explicitely exclude "C:\Program Files\rempl\sedlauncher.exe" process path since it is a legitimate process by Mircosoft. + +#### Reference + + +#### Test Dataset + + +_version_: 5 +
+ +--- + +### Processes launching netsh +This search looks for processes launching netsh.exe. Netsh is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh can be used as a persistence proxy technique to execute a helper DLL when netsh.exe is executed. In this search, we are looking for processes spawned by netsh.exe and executing commands via the command line. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.004](https://attack.mitre.org/techniques/T1562.004/) +- **Last Updated**: 2020-07-10 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) AS Processes.process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*netsh* by Processes.parent_process_name Processes.parent_process Processes.process_name Processes.user Processes.dest +|`drop_dm_object_name("Processes")` +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`processes_launching_netsh_filter` +``` +#### Associated Analytic Story + +* Netsh Abuse + +* Disabling Security Tools + +* DHS Report TA18-074A + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.004 | Disable or Modify System Firewall | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some VPN applications are known to launch netsh.exe. Outside of these instances, it is unusual for an executable to launch netsh.exe and run commands. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.004/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Prohibited Network Traffic Allowed +This search looks for network traffic defined by port and transport layer protocol in the Enterprise Security lookup table "lookup_interesting_ports", that is marked as prohibited, and has an associated 'allow' action in the Network_Traffic data model. This could be indicative of a misconfigured network device. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1048](https://attack.mitre.org/techniques/T1048/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.action = allowed by All_Traffic.src_ip All_Traffic.dest_ip All_Traffic.dest_port All_Traffic.action +| lookup update=true interesting_ports_lookup dest_port as All_Traffic.dest_port OUTPUT app is_prohibited note transport +| search is_prohibited=true +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `prohibited_network_traffic_allowed_filter` +``` +#### Associated Analytic Story + +* Prohibited Traffic Allowed or Protocol Mismatch + +* Ransomware + +* Command and Control + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest data from firewalls or other network control devices that mediate the traffic allowed into an environment. This is necessary so that the search can identify an 'action' taken on the traffic of interest. The search requires the Network_Traffic data model be populated. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Delivery + +* Command and Control + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Prohibited Software On Endpoint +This search looks for applications on the endpoint that you have marked as prohibited. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2019-10-11 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.user Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `prohibited_softwares` +| `prohibited_software_on_endpoint_filter` +``` +#### Associated Analytic Story + +* Monitor for Unauthorized Software + +* Emotet Malware DHS Report TA18-201A + +* SamSam Ransomware + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is usually generated via logs that report process tracking in your Windows audit settings. In addition, you must also have only the `process_name` (not the entire process path) marked as "prohibited" in the Enterprise Security `interesting processes` table. To include the process names marked as "prohibited", which is included with ES Content Updates, run the included search Add Prohibited Processes to Enterprise Security. + +#### Required field + + + + +#### Kill Chain Phase + +* Installation + +* Command and Control + +* Actions on Objectives + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Protocol or Port Mismatch +This search looks for network traffic on common ports where a higher layer protocol does not match the port that is being used. For example, this search should identify cases where protocols other than HTTP are running on TCP port 80. This can be used by attackers to circumvent firewall restrictions, or as an attempt to hide malicious communications over ports and protocols that are typically allowed and not well inspected. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where (All_Traffic.app=dns NOT All_Traffic.dest_port=53) OR ((All_Traffic.app=web-browsing OR All_Traffic.app=http) NOT (All_Traffic.dest_port=80 OR All_Traffic.dest_port=8080 OR All_Traffic.dest_port=8000)) OR (All_Traffic.app=ssl NOT (All_Traffic.dest_port=443 OR All_Traffic.dest_port=8443)) OR (All_Traffic.app=smtp NOT All_Traffic.dest_port=25) by All_Traffic.src_ip, All_Traffic.dest_ip, All_Traffic.app, All_Traffic.dest_port +|`security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `protocol_or_port_mismatch_filter` +``` +#### Associated Analytic Story + +* Prohibited Traffic Allowed or Protocol Mismatch + +* Command and Control + + +#### How To Implement +Running this search properly requires a technology that can inspect network traffic and identify common protocols. Technologies such as Bro and Palo Alto Networks firewalls are two examples that will identify protocols via inspection, and not just assume a specific protocol based on the transport protocol and ports. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Protocols passing authentication in cleartext +This search looks for cleartext protocols at risk of leaking credentials. Currently, this consists of legacy protocols such as telnet, POP3, IMAP, and non-anonymous FTP sessions. While some of these protocols can be used over SSL, they typically run on different assigned ports in those cases. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: +- **Last Updated**: 2020-11-04 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.transport="tcp" AND (All_Traffic.dest_port="23" OR All_Traffic.dest_port="143" OR All_Traffic.dest_port="110" OR (All_Traffic.dest_port="21" AND All_Traffic.user != "anonymous")) by All_Traffic.user All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `protocols_passing_authentication_in_cleartext_filter` +``` +#### Associated Analytic Story + +* Use of Cleartext Protocols + + +#### How To Implement +This search requires you to be ingesting your network traffic, and populating the Network_Traffic data model. + +#### Required field + + + + +#### Kill Chain Phase + +* Reconnaissance + +* Actions on Objectives + + +#### Known False Positives +Some networks may use kerberized FTP or telnet servers, however, this is rare. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Rare Parent-Child Process Relationship +An attacker may use LOLBAS tools spawned from vulnerable applications not typically used by system administrators. This search leverages the Splunk Streaming ML DSP plugin to find rare parent/child relationships. The list of application has been extracted from https://github.com/LOLBAS-Project/LOLBAS/tree/master/yml/OSBinaries + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1203](https://attack.mitre.org/techniques/T1203/), [T1059](https://attack.mitre.org/techniques/T1059/), [T1053](https://attack.mitre.org/techniques/T1053/), [T1072](https://attack.mitre.org/techniques/T1072/) +- **Last Updated**: 2020-08-13 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval parent_process=lower(ucast(map_get(input_event, "parent_process_name"), "string", null)), parent_process_name=mvindex(split(parent_process, "\\"), -1), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) +| where parent_process_name!=null +| select parent_process_name, process_name, timestamp, dest_device_id, dest_user_id +| conditional_anomaly conditional="parent_process_name" target="process_name" +| rename output as input +| where input < 1 +| adaptive_threshold algorithm="quantile" entity="parent_process_name" window=604800000L +| where label AND quantile<0.1 AND (process_name="powershell.exe" OR process_name="regsvcs.exe" OR process_name="ftp.exe" OR process_name="dfsvc.exe" OR process_name="rasautou.exe" OR process_name="schtasks.exe" OR process_name="xwizard.exe" OR process_name="findstr.exe" OR process_name="esentutl.exe" OR process_name="cscript.exe" OR process_name="reg.exe" OR process_name="csc.exe" OR process_name="atbroker.exe" OR process_name="print.exe" OR process_name="pcwrun.exe" OR process_name="vbc.exe" OR process_name="rpcping.exe" OR process_name="wsreset.exe" OR process_name="ilasm.exe" OR process_name="certutil.exe" OR process_name="replace.exe" OR process_name="mshta.exe" OR process_name="bitsadmin.exe" OR process_name="wscript.exe" OR process_name="ieexec.exe" OR process_name="cmd.exe" OR process_name="microsoft.workflow.compiler.exe" OR process_name="runscripthelper.exe" OR process_name="makecab.exe" OR process_name="forfiles.exe" OR process_name="desktopimgdownldr.exe" OR process_name="control.exe" OR process_name="msbuild.exe" OR process_name="register-cimprovider.exe" OR process_name="tttracer.exe" OR process_name="ie4uinit.exe" OR process_name="sc.exe" OR process_name="bash.exe" OR process_name="hh.exe" OR process_name="cmstp.exe" OR process_name="mmc.exe" OR process_name="jsc.exe" OR process_name="scriptrunner.exe" OR process_name="odbcconf.exe" OR process_name="extexport.exe" OR process_name="msdt.exe" OR process_name="diskshadow.exe" OR process_name="extrac32.exe" OR process_name="eventvwr.exe" OR process_name="mavinject.exe" OR process_name="regasm.exe" OR process_name="gpscript.exe" OR process_name="rundll32.exe" OR process_name="regsvr32.exe" OR process_name="regedit.exe" OR process_name="msiexec.exe" OR process_name="gfxdownloadwrapper.exe" OR process_name="presentationhost.exe" OR process_name="regini.exe" OR process_name="wmic.exe" OR process_name="runonce.exe" OR process_name="syncappvpublishingserver.exe" OR process_name="verclsid.exe" OR process_name="psr.exe" OR process_name="infdefaultinstall.exe" OR process_name="explorer.exe" OR process_name="expand.exe" OR process_name="installutil.exe" OR process_name="netsh.exe" OR process_name="wab.exe" OR process_name="dnscmd.exe" OR process_name="at.exe" OR process_name="pcalua.exe" OR process_name="cmdkey.exe" OR process_name="msconfig.exe") + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +Collect endpoint data such as sysmon or 4688 events. + +#### Required field + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1203 | Exploitation for Client Execution | Execution | +| T1059 | Command and Scripting Interpreter | Execution | +| T1053 | Scheduled Task/Job | Execution, Persistence, Privilege Escalation | +| T1072 | Software Deployment Tools | Execution, Lateral Movement | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Some custom tools used by admins could be used rarely to launch remotely applications. This might trigger false positives at the beginning when it hasn't collected yet enough data to construct the baseline. + + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Accounts Groups and Policies via PowerSploit modules +This detection identifies access to PowerSploit modules that discover accounts, groups and policies that can be accessed or taken over. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1087](https://attack.mitre.org/techniques/T1087/), [T1484](https://attack.mitre.org/techniques/T1484/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainLocalGroupMember/)=true OR match_regex(cmd_line, /(?i)Invoke-EnumerateLocalAdmin/)=true OR match_regex(cmd_line, /(?i)Find-DomainUserEvent/)=true OR match_regex(cmd_line, /(?i)Invoke-EventHunter/)=true OR match_regex(cmd_line, /(?i)Find-DomainUserLocation/)=true OR match_regex(cmd_line, /(?i)Invoke-UserHunter/)=true OR match_regex(cmd_line, /(?i)Get-DomainForeignGroupMember/)=true OR match_regex(cmd_line, /(?i)Find-ForeignGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainForeignUser/)=true OR match_regex(cmd_line, /(?i)Find-ForeignUser/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPO/)=true OR match_regex(cmd_line, /(?i)Get-NetGPO/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOComputerLocalGroupMapping/)=true OR match_regex(cmd_line, /(?i)Find-GPOComputerAdmin/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOLocalGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetGPOGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOUserLocalGroupMapping/)=true OR match_regex(cmd_line, /(?i)Find-GPOLocation/)=true OR match_regex(cmd_line, /(?i)Get-DomainGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-NetGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-DomainManagedSecurityGroup/)=true OR match_regex(cmd_line, /(?i)Find-ManagedSecurityGroups/)=true OR match_regex(cmd_line, /(?i)Get-DomainOU/)=true OR match_regex(cmd_line, /(?i)Get-NetOU/)=true OR match_regex(cmd_line, /(?i)Get-DomainUser/)=true OR match_regex(cmd_line, /(?i)Get-NetUser/)=true OR match_regex(cmd_line, /(?i)Get-DomainUserEvent/)=true OR match_regex(cmd_line, /(?i)Get-UserEvent/)=true OR match_regex(cmd_line, /(?i)Get-NetLocalGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetLocalGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-NetLoggedon/)=true OR match_regex(cmd_line, /(?i)Get-RegLoggedOn/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegLastLoggedOn/)=true OR match_regex(cmd_line, /(?i)Get-LastLoggedOn/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1087 | Account Discovery | Discovery | +| T1484 | Domain Policy Modification | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Accounts and Groups via Mimikatz modules +This detection identifies use of Mimikatz modules for discovery of accounts and groups and access to them. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1087](https://attack.mitre.org/techniques/T1087/), [T1484](https://attack.mitre.org/techniques/T1484/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::user/)=true OR match_regex(cmd_line, /(?i)net::group/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1087 | Account Discovery | Discovery | +| T1484 | Domain Policy Modification | Defense Evasion, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Active Directoty Infrastructure via PowerSploit modules +This detection identifies access to PowerSploit modules for reconnaissance and access to elements of Active Directory infrastructure, such as domain identifiers, AD sites and forests, and trust relations. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1199](https://attack.mitre.org/techniques/T1199/), [T1482](https://attack.mitre.org/techniques/T1482/), [T1590](https://attack.mitre.org/techniques/T1590/), [T1591](https://attack.mitre.org/techniques/T1591/), [T1595](https://attack.mitre.org/techniques/T1595/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-DomainSID/)=true OR match_regex(cmd_line, /(?i)Get-DomainSite/)=true OR match_regex(cmd_line, /(?i)Get-NetSite/)=true OR match_regex(cmd_line, /(?i)Get-DomainSubnet/)=true OR match_regex(cmd_line, /(?i)Get-NetSubnet/)=true OR match_regex(cmd_line, /(?i)Get-DomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-NetDomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-DomainTrustMapping/)=true OR match_regex(cmd_line, /(?i)Invoke-MapDomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-Forest/)=true OR match_regex(cmd_line, /(?i)Get-NetForest/)=true OR match_regex(cmd_line, /(?i)Get-ForestDomain/)=true OR match_regex(cmd_line, /(?i)Get-NetForestDomain/)=true OR match_regex(cmd_line, /(?i)Get-ForestGlobalCatalog/)=true OR match_regex(cmd_line, /(?i)Get-NetForestCatalog/)=true OR match_regex(cmd_line, /(?i)Get-ForestTrust/)=true OR match_regex(cmd_line, /(?i)Get-NetForestTrust/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1199 | Trusted Relationship | Initial Access | +| T1482 | Domain Trust Discovery | Discovery | +| T1590 | Gather Victim Network Information | Reconnaissance | +| T1591 | Gather Victim Org Information | Reconnaissance | +| T1595 | Active Scanning | Reconnaissance | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Computers and Domains via PowerSploit modules +This detection identifies access to PowerSploit modules that discover computers, servers and domains that can be accessed or taken over. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1592](https://attack.mitre.org/techniques/T1592/), [T1590](https://attack.mitre.org/techniques/T1590/), [T1087](https://attack.mitre.org/techniques/T1087/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ComputerDetail/)=true OR match_regex(cmd_line, /(?i)Get-Domain/)=true OR match_regex(cmd_line, /(?i)Get-NetDomain/)=true OR match_regex(cmd_line, /(?i)Get-DomainComputer/)=true OR match_regex(cmd_line, /(?i)Get-NetComputer/)=true OR match_regex(cmd_line, /(?i)Get-DomainController/)=true OR match_regex(cmd_line, /(?i)Get-NetDomainController/)=true OR match_regex(cmd_line, /(?i)Get-DomainFileServer/)=true OR match_regex(cmd_line, /(?i)Get-NetFileServer/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1592 | Gather Victim Host Information | Reconnaissance | +| T1590 | Gather Victim Network Information | Reconnaissance | +| T1087 | Account Discovery | Discovery | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Computers via Mimikatz modules +This detection identifies use of Mimikatz modules for discovery of computers and servers and access to them. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1592](https://attack.mitre.org/techniques/T1592/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::ServerInfo/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1592 | Gather Victim Host Information | Reconnaissance | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Operating System Elements via PowerSploit modules +This detection identifies access to PowerSploit modules that discover and access operating system elements, such as processes, services, registry locations, security packages and files. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1007](https://attack.mitre.org/techniques/T1007/), [T1012](https://attack.mitre.org/techniques/T1012/), [T1046](https://attack.mitre.org/techniques/T1046/), [T1047](https://attack.mitre.org/techniques/T1047/), [T1057](https://attack.mitre.org/techniques/T1057/), [T1083](https://attack.mitre.org/techniques/T1083/), [T1518](https://attack.mitre.org/techniques/T1518/), [T1592.002](https://attack.mitre.org/techniques/T1592.002/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainProcess/)=true OR match_regex(cmd_line, /(?i)Invoke-ProcessHunter/)=true OR match_regex(cmd_line, /(?i)Get-ServiceDetail/)=true OR match_regex(cmd_line, /(?i)Get-WMIProcess/)=true OR match_regex(cmd_line, /(?i)Get-NetProcess/)=true OR match_regex(cmd_line, /(?i)Get-SecurityPackage/)=true OR match_regex(cmd_line, /(?i)Find-DomainObjectPropertyOutlier/)=true OR match_regex(cmd_line, /(?i)Get-DomainObject/)=true OR match_regex(cmd_line, /(?i)Get-ADObject/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegMountedDrive/)=true OR match_regex(cmd_line, /(?i)Get-RegistryMountedDrive/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1007 | System Service Discovery | Discovery | +| T1012 | Query Registry | Discovery | +| T1046 | Network Service Scanning | Discovery | +| T1047 | Windows Management Instrumentation | Execution | +| T1057 | Process Discovery | Discovery | +| T1083 | File and Directory Discovery | Discovery | +| T1518 | Software Discovery | Discovery | +| T1592.002 | Software | Reconnaissance | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Processes and Services via Mimikatz modules +This detection identifies use of Mimikatz modules for discovery and access to services and processes. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1007](https://attack.mitre.org/techniques/T1007/), [T1046](https://attack.mitre.org/techniques/T1046/), [T1057](https://attack.mitre.org/techniques/T1057/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)process::list/)=true OR match_regex(cmd_line, /(?i)service::list/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1007 | System Service Discovery | Discovery | +| T1046 | Network Service Scanning | Discovery | +| T1057 | Process Discovery | Discovery | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Shared Resources via Mimikatz modules +This detection identifies use of Mimikatz modules for discovery and access to network shares. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1135](https://attack.mitre.org/techniques/T1135/), [T1039](https://attack.mitre.org/techniques/T1039/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::share/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1135 | Network Share Discovery | Discovery | +| T1039 | Data from Network Shared Drive | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance and Access to Shared Resources via PowerSploit modules +This detection identifies access to PowerSploit modules that discover and access network and distributed file system shares. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1135](https://attack.mitre.org/techniques/T1135/), [T1039](https://attack.mitre.org/techniques/T1039/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainShare/)=true OR match_regex(cmd_line, /(?i)Invoke-ShareFinder/)=true OR match_regex(cmd_line, /(?i)Find-InterestingDomainShareFile/)=true OR match_regex(cmd_line, /(?i)Invoke-FileFinder/)=true OR match_regex(cmd_line, /(?i)Find-InterestingFile/)=true OR match_regex(cmd_line, /(?i)Get-DomainDFSShare/)=true OR match_regex(cmd_line, /(?i)Get-DFSshare/)=true OR match_regex(cmd_line, /(?i)Get-NetShare/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1135 | Network Share Discovery | Discovery | +| T1039 | Data from Network Shared Drive | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Access and Persistence Opportunities via PowerSploit modules +This detection identifies use of PowerSploit modules that discover opportunities for malicious access and persistence. Some examples include access to admin accounts, weak access control policies, landing paths for dropping malicious software or data to exfiltrate, registry locations to land autorun parameters, task scheduling opportunities, as well as services and system files that can be compromised. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1053](https://attack.mitre.org/techniques/T1053/), [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1543](https://attack.mitre.org/techniques/T1543/), [T1547](https://attack.mitre.org/techniques/T1547/), [T1574](https://attack.mitre.org/techniques/T1574/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-LocalAdminAccess/)=true OR match_regex(cmd_line, /(?i)Find-InterestingDomainAcl/)=true OR match_regex(cmd_line, /(?i)Invoke-ACLScanner/)=true OR match_regex(cmd_line, /(?i)Find-PathDLLHijack/)=true OR match_regex(cmd_line, /(?i)Find-ProcessDLLHijack/)=true OR match_regex(cmd_line, /(?i)Get-DomainObjectAcl/)=true OR match_regex(cmd_line, /(?i)Get-ObjectAcl/)=true OR match_regex(cmd_line, /(?i)Get-DomainPolicy/)=true OR match_regex(cmd_line, /(?i)Get-ModifiablePath/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableRegistryAutoRun/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableScheduledTaskFile/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableService/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableServiceFile/)=true OR match_regex(cmd_line, /(?i)Get-PathAcl/)=true OR match_regex(cmd_line, /(?i)Get-UnattendedInstallFile/)=true OR match_regex(cmd_line, /(?i)Get-UnquotedService/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053 | Scheduled Task/Job | Execution, Persistence, Privilege Escalation | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1543 | Create or Modify System Process | Persistence, Privilege Escalation | +| T1547 | Boot or Logon Autostart Execution | Persistence, Privilege Escalation | +| T1574 | Hijack Execution Flow | Defense Evasion, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Connectivity via PowerSploit modules +This detection identifies access to PowerSploit modules for reconnaissance of connectivity. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1135](https://attack.mitre.org/techniques/T1135/), [T1039](https://attack.mitre.org/techniques/T1039/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-DomainDNSRecord/)=true OR match_regex(cmd_line, /(?i)Get-DNSRecord/)=true OR match_regex(cmd_line, /(?i)Get-DomainDNSZone/)=true OR match_regex(cmd_line, /(?i)Get-DNSZone/)=true OR match_regex(cmd_line, /(?i)Invoke-ReverseDnsLookup/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegCachedRDPConnection/)=true OR match_regex(cmd_line, /(?i)Get-CachedRDPConnection/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegProxy/)=true OR match_regex(cmd_line, /(?i)Get-Proxy/)=true OR match_regex(cmd_line, /(?i)Invoke-Portscan/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1135 | Network Share Discovery | Discovery | +| T1039 | Data from Network Shared Drive | Collection | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Credential Stores and Services via Mimikatz modules +This detection identifies reconnaissance of credential stores and use of CryptoAPI services by Mimikatz modules. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1589.001](https://attack.mitre.org/techniques/T1589.001/), [T1590.001](https://attack.mitre.org/techniques/T1590.001/), [T1590.003](https://attack.mitre.org/techniques/T1590.003/), [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)crypto::capi/)=true OR match_regex(cmd_line, /(?i)crypto::cng/)=true OR match_regex(cmd_line, /(?i)crypto::providers/)=true OR match_regex(cmd_line, /(?i)crypto::stores/)=true OR match_regex(cmd_line, /(?i)crypto::sc/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1589.001 | Credentials | Reconnaissance | +| T1590.001 | Domain Properties | Reconnaissance | +| T1590.003 | Network Trust Dependencies | Reconnaissance | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Defensive Tools via PowerSploit modules +This detection identifies use of PowerSploit modules for assessment of presence of defensive tools. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1595.002](https://attack.mitre.org/techniques/T1595.002/), [T1592.002](https://attack.mitre.org/techniques/T1592.002/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-AVSignature/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1595.002 | Vulnerability Scanning | Reconnaissance | +| T1592.002 | Software | Reconnaissance | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Privilege Escalation Opportunities via PowerSploit modules +This detection identifies use of PowerSploit modules for assessment of privilege escalation opportunities. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Invoke-PrivescAudit/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reconnaissance of Process or Service Hijacking Opportunities via Mimikatz modules +This detection identifies use of Mimikatz modules for discovery of process or service hijacking opportunities via Microsoft Detours compatibility. Microsoft Detours is an open source library for intercepting, monitoring and instrumenting binary functions on Microsoft Windows. Detours intercepts Win32 functions by re-writing the in-memory code for target functions. The Detours package also contains utilities to attach arbitrary DLLs and data segments called payloads to any Win32 binary. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1543](https://attack.mitre.org/techniques/T1543/), [T1055](https://attack.mitre.org/techniques/T1055/), [T1574](https://attack.mitre.org/techniques/T1574/) +- **Last Updated**: 2020-11-05 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)misc::detours/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1543 | Create or Modify System Process | Persistence, Privilege Escalation | +| T1055 | Process Injection | Defense Evasion, Privilege Escalation | +| T1574 | Hijack Execution Flow | Defense Evasion, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + +* https://en.wikipedia.org/wiki/Microsoft_Detours + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Reg exe Manipulating Windows Services Registry Keys +The search looks for reg.exe modifying registry keys that define Windows services and their configurations. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1574.011](https://attack.mitre.org/techniques/T1574.011/) +- **Last Updated**: 2020-11-26 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name values(Processes.user) as user FROM datamodel=Endpoint.Processes where Processes.process_name=reg.exe Processes.process=*reg* Processes.process=*add* Processes.process=*Services* by Processes.process_id Processes.dest Processes.process +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `reg_exe_manipulating_windows_services_registry_keys_filter` +``` +#### Associated Analytic Story + +* Windows Service Abuse + +* Windows Persistence Techniques + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1574.011 | Services Registry Permissions Weakness | Defense Evasion, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Installation + + +#### Known False Positives +It is unusual for a service to be created or modified by directly manipulating the registry. However, there may be legitimate instances of this behavior. It is important to validate and investigate, as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1574.011/change_registry_path_service/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Reg exe used to hide files directories via registry keys +The search looks for command-line arguments used to hide a file or directory using the reg add command. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1564.001](https://attack.mitre.org/techniques/T1564.001/) +- **Last Updated**: 2019-02-27 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = reg.exe Processes.process="*add*" Processes.process="*Hidden*" Processes.process="*REG_DWORD*" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| regex process = "(/d\s+2)" +| `reg_exe_used_to_hide_files_directories_via_registry_keys_filter` +``` +#### Associated Analytic Story + +* Windows Defense Evasion Tactics + +* Suspicious Windows Registry Activities + +* Windows Persistence Techniques + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1564.001 | Hidden Files and Directories | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None at the moment + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Registry Keys Used For Persistence +The search looks for modifications to registry keys that can be used to launch an application or service at system startup. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1547.001](https://attack.mitre.org/techniques/T1547.001/) +- **Last Updated**: 2020-11-27 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name values(Registry.registry_path) as registry_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where (Registry.registry_path=*currentversion\\run* OR Registry.registry_path=*currentVersion\\Windows\\Appinit_Dlls* OR Registry.registry_path=CurrentVersion\\Winlogon\\Shell* OR Registry.registry_path=*CurrentVersion\\Winlogon\\Userinit* OR Registry.registry_path=*CurrentVersion\\Winlogon\\VmApplet* OR Registry.registry_path=*currentversion\\policies\\explorer\\run* OR Registry.registry_path=*currentversion\\runservices* OR Registry.registry_path=*\\CurrentControlSet\\Control\\Lsa\\* OR Registry.registry_path="*Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options*" OR Registry.registry_path=HKLM\\SOFTWARE\\Microsoft\\Netsh\\*) by Registry.dest Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_used_for_persistence_filter` +``` +#### Associated Analytic Story + +* Suspicious Windows Registry Activities + +* Suspicious MSHTA Activity + +* DHS Report TA18-074A + +* Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns + +* Ransomware + +* Windows Persistence Techniques + +* Emotet Malware DHS Report TA18-201A + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +There are many legitimate applications that must execute on system startup and will use these registry keys to accomplish that task. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1547.001/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Registry Keys Used For Privilege Escalation +This search looks for modifications to registry keys that can be used to elevate privileges. The registry keys under "Image File Execution Options" are used to intercept calls to an executable and can be used to attach malicious binaries to benign system binaries. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1546.012](https://attack.mitre.org/techniques/T1546.012/) +- **Last Updated**: 2020-11-27 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where (Registry.registry_path="*Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options*") AND (Registry.registry_key_name=GlobalFlag OR Registry.registry_key_name=Debugger) by Registry.dest Registry.user Registry.registry_path Registry.registry_key_name +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_used_for_privilege_escalation_filter` +``` +#### Associated Analytic Story + +* Windows Privilege Escalation + +* Suspicious Windows Registry Activities + +* Cloud Federated Credential Abuse + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.012 | Image File Execution Options Injection | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +There are many legitimate applications that must execute upon system startup and will use these registry keys to accomplish that task. + +#### Reference + +* https://blog.malwarebytes.com/101/2015/12/an-introduction-to-image-file-execution-options/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.012/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Registry Keys for Creating SHIM Databases +This search looks for registry activity associated with application compatibility shims, which can be leveraged by attackers for various nefarious purposes. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1546.011](https://attack.mitre.org/techniques/T1546.011/) +- **Last Updated**: 2020-11-26 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path=*CurrentVersion\\AppCompatFlags\\Custom* OR Registry.registry_path=*CurrentVersion\\AppCompatFlags\\InstalledSDB* by Registry.dest Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_for_creating_shim_databases_filter` +``` +#### Associated Analytic Story + +* Suspicious Windows Registry Activities + +* Windows Persistence Techniques + + +#### How To Implement +To successfully implement this search, you must populate the Change_Analysis data model. This is typically populated via endpoint detection and response product, such as Carbon Black or other endpoint data sources such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +There are many legitimate applications that leverage shim databases for compatibility purposes for legacy applications + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Remote Desktop Network Bruteforce +This search looks for RDP application network traffic and filters any source/destination pair generating more than twice the standard deviation of the average traffic. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.app=rdp by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| eventstats stdev(count) AS stdev avg(count) AS avg p50(count) AS p50 +| where count>(avg + stdev*2) +| rename All_Traffic.src AS src All_Traffic.dest AS dest +| table firstTime lastTime src dest count avg p50 stdev +| `remote_desktop_network_bruteforce_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* Ryuk Ransomware + + +#### How To Implement +You must ensure that your network traffic data is populating the Network_Traffic data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.001 | Remote Desktop Protocol | Lateral Movement | + + +#### Kill Chain Phase + +* Reconnaissance + +* Delivery + + +#### Known False Positives +RDP gateways may have unusually high amounts of traffic from all other hosts' RDP applications in the network. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Remote Desktop Network Traffic +This search looks for network traffic on TCP/3389, the default port used by remote desktop. While remote desktop traffic is not uncommon on a network, it is usually associated with known hosts. This search will ignore common RDP sources and common RDP destinations so you can focus on the uncommon uses of remote desktop on your network. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/) +- **Last Updated**: 2020-07-07 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.dest_port=3389 AND All_Traffic.dest_category!=common_rdp_destination AND All_Traffic.src_category!=common_rdp_source by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `remote_desktop_network_traffic_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* Ryuk Ransomware + +* Hidden Cobra Malware + +* Lateral Movement + + +#### How To Implement +To successfully implement this search you need to identify systems that commonly originate remote desktop traffic and that commonly receive remote desktop traffic. You can use the included support search "Identify Systems Creating Remote Desktop Traffic" to identify systems that originate the traffic and the search "Identify Systems Receiving Remote Desktop Traffic" to identify systems that receive a lot of remote desktop traffic. After identifying these systems, you will need to add the "common_rdp_source" or "common_rdp_destination" category to that system depending on the usage, using the Enterprise Security Assets and Identities framework. This can be done by adding an entry in the assets.csv file located in SA-IdentityManagement/lookups. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.001 | Remote Desktop Protocol | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Remote Desktop may be used legitimately by users on the network. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Remote Desktop Process Running On System +This search looks for the remote desktop process mstsc.exe running on systems upon which it doesn't typically run. This is accomplished by filtering out all systems that are noted in the `common_rdp_source category` in the Assets and Identity framework. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*mstsc.exe AND Processes.dest_category!=common_rdp_source by Processes.dest Processes.user Processes.process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `remote_desktop_process_running_on_system_filter` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + +* Lateral Movement + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. The search requires you to identify systems that do not commonly use remote desktop. You can use the included support search "Identify Systems Using Remote Desktop" to identify these systems. After identifying them, you will need to add the "common_rdp_source" category to that system using the Enterprise Security Assets and Identities framework. This can be done by adding an entry in the assets.csv file located in `SA-IdentityManagement/lookups`. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.001 | Remote Desktop Protocol | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Remote Desktop may be used legitimately by users on the network. + +#### Reference + + +#### Test Dataset + + +_version_: 5 +
+ +--- + +### Remote Process Instantiation via WMI +This search looks for wmic.exe being launched with parameters to spawn a process on a remote system. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2020-11-30 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = wmic.exe Processes.process="*/node*" Processes.process="*process*" Processes.process="*call*" Processes.process="*create*" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `remote_process_instantiation_via_wmi_filter` +``` +#### Associated Analytic Story + +* Ransomware + +* Suspicious WMI Use + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The wmic.exe utility is a benign Windows application. It may be used legitimately by Administrators with these parameters for remote system administration, but it's relatively uncommon. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Remote Registry Key modifications +This search monitors for remote modifications to registry keys. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-03-02 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name values(Registry.registry_path) as registry_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path="\\\\*" by Registry.dest , Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `remote_registry_key_modifications_filter` +``` +#### Associated Analytic Story + +* Windows Defense Evasion Tactics + +* Suspicious Windows Registry Activities + +* Windows Persistence Techniques + + +#### How To Implement +To successfully implement this search, you must populate the `Endpoint` data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. Deprecated because I don't think the logic is right. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +This technique may be legitimately used by administrators to modify remote registries, so it's important to filter these events out. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Remote WMI Command Attempt +This search looks for wmic.exe being launched with parameters to operate on remote systems. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2018-12-03 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wmic.exe AND Processes.process= */node* by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `remote_wmi_command_attempt_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. Deprecated because duplicate of Remote Process Instantiation via WMI. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators may use this legitimately to gather info from remote systems. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### RunDLL Loading DLL By Ordinal +This search looks for executing scripts with rundll32. Adversaries may abuse rundll32.exe to proxy execution of malicious code. Using rundll32.exe, vice executing directly, may avoid triggering security tools that may not monitor execution of the rundll32.exe process because of allowlists or false positives from normal operations. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2020-11-30 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = rundll32.exe by Processes.process_name Processes.parent_process_name Processes.process Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `rundll_loading_dll_by_ordinal_filter` +``` +#### Associated Analytic Story + +* Unusual Processes + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Installation + + +#### Known False Positives +While not common, loading a DLL under %AppData% and calling a function by ordinal is possible by a legitimate process + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Ryuk Test Files Detected +The search looks for files that contain the key word *Ryuk* under any folder in the C drive, which is consistent with Ryuk propagation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1486](https://attack.mitre.org/techniques/T1486/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem WHERE "Filesystem.file_path"=C:\\*Ryuk* BY "Filesystem.dest", "Filesystem.user", "Filesystem.file_path" +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `ryuk_test_files_detected_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + + +#### How To Implement +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint Filesystem data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1486 | Data Encrypted for Impact | Impact | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +If there are files with this keywoord as file names it might trigger false possitives, please make use of our filters to tune out potential FPs. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/ryuk/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### SMB Traffic Spike +This search looks for spikes in the number of Server Message Block (SMB) traffic connections. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Network_Traffic where All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app=smb by _time span=1h, All_Traffic.src +| `drop_dm_object_name("All_Traffic")` +| eventstats max(_time) as maxtime +| stats count as num_data_samples max(eval(if(_time >= relative_time(maxtime, "-70m@m"), count, null))) as count avg(eval(if(_time upperBound AND num_data_samples >=50, 1, 0) +| where isOutlier=1 +| table src count +| `smb_traffic_spike_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Hidden Cobra Malware + +* Ransomware + +* DHS Report TA18-074A + + +#### How To Implement +This search requires you to be ingesting your network traffic logs and populating the `Network_Traffic` data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +A file server may experience high-demand loads that could cause this analytic to trigger. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### SMB Traffic Spike - MLTK +This search uses the Machine Learning Toolkit (MLTK) to identify spikes in the number of Server Message Block (SMB) connections. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(All_Traffic.dest_ip) as dest values(All_Traffic.dest_port) as port from datamodel=Network_Traffic where All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app=smb by _time span=1h, All_Traffic.src +| eval HourOfDay=strftime(_time, "%H") +| eval DayOfWeek=strftime(_time, "%A") +| `drop_dm_object_name(All_Traffic)` +| apply smb_pdfmodel threshold=0.001 +| rename "IsOutlier(count)" as isOutlier +| search isOutlier > 0 +| sort -count +| table _time src dest port count +| `smb_traffic_spike___mltk_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Hidden Cobra Malware + +* Ransomware + +* DHS Report TA18-074A + + +#### How To Implement +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. In addition, the Machine Learning Toolkit (MLTK) version 4.2 or greater must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of SMB Traffic - MLTK" must be executed before this detection search, because it builds a machine-learning (ML) model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment.\ +This search produces a field (Number of events,count) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. This field contributes additional context to the notable. To see the additional metadata, add the following field, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry): \ +1. **Label:** Number of events, **Field:** count\ +Detailed documentation on how to create a new field within Incident Review is found here: `https://docs.splunk.com/Documentation/ES/5.3.0/Admin/Customizenotables#Add_a_field_to_the_notable_event_details` + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +If you are seeing more results than desired, you may consider reducing the value of the threshold in the search. You should also periodically re-run the support search to re-build the ML model on the latest data. Please update the `smb_traffic_spike_mltk_filter` macro to filter out false positive results + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### SQL Injection with Long URLs +This search looks for long URLs that have several SQL commands visible within them. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1190](https://attack.mitre.org/techniques/T1190/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Web where Web.dest_category=web_server AND (Web.url_length > 1024 OR Web.http_user_agent_length > 200) by Web.src Web.dest Web.url Web.url_length Web.http_user_agent +| `drop_dm_object_name("Web")` +| eval num_sql_cmds=mvcount(split(url, "alter%20table")) + mvcount(split(url, "between")) + mvcount(split(url, "create%20table")) + mvcount(split(url, "create%20database")) + mvcount(split(url, "create%20index")) + mvcount(split(url, "create%20view")) + mvcount(split(url, "delete")) + mvcount(split(url, "drop%20database")) + mvcount(split(url, "drop%20index")) + mvcount(split(url, "drop%20table")) + mvcount(split(url, "exists")) + mvcount(split(url, "exec")) + mvcount(split(url, "group%20by")) + mvcount(split(url, "having")) + mvcount(split(url, "insert%20into")) + mvcount(split(url, "inner%20join")) + mvcount(split(url, "left%20join")) + mvcount(split(url, "right%20join")) + mvcount(split(url, "full%20join")) + mvcount(split(url, "select")) + mvcount(split(url, "distinct")) + mvcount(split(url, "select%20top")) + mvcount(split(url, "union")) + mvcount(split(url, "xp_cmdshell")) - 24 +| where num_sql_cmds > 3 +| `sql_injection_with_long_urls_filter` +``` +#### Associated Analytic Story + +* SQL Injection + + +#### How To Implement +To successfully implement this search, you need to be monitoring network communications to your web servers or ingesting your HTTP logs and populating the Web data model. You must also identify your web servers in the Enterprise Security assets table. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1190 | Exploit Public-Facing Application | Initial Access | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +It's possible that legitimate traffic will have long URLs or long user agent strings and that common SQL commands may be found within the URL. Please investigate as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Samsam Test File Write +The search looks for a file named "test.txt" written to the windows system directory tree, which is consistent with Samsam propagation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1486](https://attack.mitre.org/techniques/T1486/) +- **Last Updated**: 2018-12-14 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name from datamodel=Endpoint.Filesystem where Filesystem.file_path=*\\windows\\system32\\test.txt by Filesystem.file_path +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `samsam_test_file_write_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + + +#### How To Implement +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1486 | Data Encrypted for Impact | Impact | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +No false positives have been identified. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/sam_sam_note/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Sc exe Manipulating Windows Services +This search looks for arguments to sc.exe indicating the creation or modification of a Windows service. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1543.003](https://attack.mitre.org/techniques/T1543.003/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = sc.exe (Processes.process="* create *" OR Processes.process="* config *") by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `sc_exe_manipulating_windows_services_filter` +``` +#### Associated Analytic Story + +* Windows Service Abuse + +* DHS Report TA18-074A + +* Orangeworm Attack Group + +* Windows Persistence Techniques + +* Disabling Security Tools + +* Sunburst Malware + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1543.003 | Windows Service | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Installation + + +#### Known False Positives +Using sc.exe to manipulate Windows services is uncommon. However, there may be legitimate instances of this behavior. It is important to validate and investigate as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1543.003/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Scheduled Task Deleted Or Created via CMD +This search looks for flags passed to schtasks.exe on the command-line that indicate a task was created via command like. This has been associated with the Dragonfly threat actor, and the SUNBURST attack against Solarwinds. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1053.005](https://attack.mitre.org/techniques/T1053.005/) +- **Last Updated**: 2020-12-17 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe (Processes.process=*delete* OR Processes.process=*create*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `scheduled_task_deleted_or_created_via_cmd_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + +* Sunburst Malware + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Tasks should not be manually created via CLI, this is rarely done by admins as well + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Scheduled tasks used in BadRabbit ransomware +This search looks for flags passed to schtasks.exe on the command-line that indicate that task names related to the execution of Bad Rabbit ransomware were created or deleted. Deprecated because we already have a similar detection + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1053.005](https://attack.mitre.org/techniques/T1053.005/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process) as process from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe (Processes.process= "*create*" OR Processes.process= "*delete*") by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| search (process=*rhaegal* OR process=*drogon* OR *viserion_*) +| `scheduled_tasks_used_in_badrabbit_ransomware_filter` +``` +#### Associated Analytic Story + +* Ransomware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +No known false positives + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Schtasks scheduling job on remote system +This search looks for flags passed to schtasks.exe on the command-line that indicate a job is being scheduled on a remote system. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1053.005](https://attack.mitre.org/techniques/T1053.005/) +- **Last Updated**: 2020-07-21 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = schtasks.exe Processes.process="*/create*" (Processes.process="* /s *" OR Processes.process="* /S *") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `schtasks_scheduling_job_on_remote_system_filter` +``` +#### Associated Analytic Story + +* Lateral Movement + +* Sunburst Malware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators may create jobs on remote systems, but this activity is usually limited to a small set of hosts or users. It is important to validate and investigate as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Schtasks used for forcing a reboot +This search looks for flags passed to schtasks.exe on the command-line that indicate that a forced reboot of system is scheduled. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1053.005](https://attack.mitre.org/techniques/T1053.005/) +- **Last Updated**: 2020-12-07 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe Processes.process="*shutdown*" Processes.process="*/create *" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `schtasks_used_for_forcing_a_reboot_filter` +``` +#### Associated Analytic Story + +* Windows Persistence Techniques + +* Ransomware + + +#### How To Implement +To successfully implement this search you need to be ingesting logs with both the process name and command-line from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators may create jobs on systems forcing reboots to perform updates, maintenance, etc. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/schtask_shutdown/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Script Execution via WMI +This search looks for scripts launched via WMI. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2020-03-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_name = "scrcons.exe" by Processes.user Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `script_execution_via_wmi_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, administrators may use wmi to launch scripts for legitimate purposes. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/execution_scrcons/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Setting Credentials via DSInternals modules +This detection identifies illegal setting of credentials via DSInternals modules. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Add-ADDBSidHistory/)=true OR match_regex(cmd_line, /(?i)Add-ADReplNgcKey/)=true OR match_regex(cmd_line, /(?i)Set-ADDBAccountPassword/)=true OR match_regex(cmd_line, /(?i)Set-ADDBAccountPasswordHash/)=true OR match_regex(cmd_line, /(?i)Set-ADDBBootKey/)=true OR match_regex(cmd_line, /(?i)Set-SamAccountPasswordHash/)=true OR match_regex(cmd_line, /(?i)Set-AzureADUserEx/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/MichaelGrafnetter/DSInternals + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Setting Credentials via Mimikatz modules +This detection identifies illegal setting of credentials via Mimikatz modules. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)misc::addsid/)=true OR match_regex(cmd_line, /(?i)CRYPTO::scauth/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/gentilkiwi/mimikatz + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Setting Credentials via PowerSploit modules +This detection identifies illegal setting of credentials via PowerSploit modules. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1098](https://attack.mitre.org/techniques/T1098/) +- **Last Updated**: 2020-11-03 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Set-DomainUserPassword/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +#### Required field + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1098 | Account Manipulation | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified. + +#### Reference + +* https://github.com/PowerShellMafia/PowerSploit + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Shim Database File Creation +This search looks for shim database files being written to default directories. The sdbinst.exe application is used to install shim database files (.sdb). According to Microsoft, a shim is a small library that transparently intercepts an API, changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1546.011](https://attack.mitre.org/techniques/T1546.011/) +- **Last Updated**: 2020-12-08 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Filesystem.action) values(Filesystem.file_hash) as file_hash values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.file_path=*Windows\\AppPatch\\Custom* by Filesystem.file_name Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +|`drop_dm_object_name(Filesystem)` +| `shim_database_file_creation_filter` +``` +#### Associated Analytic Story + +* Windows Persistence Techniques + + +#### How To Implement +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Because legitimate shim files are created and used all the time, this event, in itself, is not suspicious. However, if there are other correlating events, it may warrant further investigation. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Shim Database Installation With Suspicious Parameters +This search detects the process execution and arguments required to silently create a shim database. The sdbinst.exe application is used to install shim database files (.sdb). A shim is a small library which transparently intercepts an API, changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1546.011](https://attack.mitre.org/techniques/T1546.011/) +- **Last Updated**: 2020-11-23 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = sdbinst.exe by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `shim_database_installation_with_suspicious_parameters_filter` +``` +#### Associated Analytic Story + +* Windows Persistence Techniques + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Short Lived Windows Accounts +This search detects accounts that were created and deleted in a short time period. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1136.001](https://attack.mitre.org/techniques/T1136.001/) +- **Last Updated**: 2020-07-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(All_Changes.result_id) as result_id count min(_time) as firstTime max(_time) as lastTime from datamodel=Change where All_Changes.result_id=4720 OR All_Changes.result_id=4726 by _time span=4h All_Changes.user All_Changes.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name("All_Changes")` +| search result_id = 4720 result_id=4726 +| transaction user connected=false maxspan=240m +| table firstTime lastTime count user dest result_id +| `short_lived_windows_accounts_filter` +``` +#### Associated Analytic Story + +* Account Monitoring and Controls + + +#### How To Implement +This search requires you to have enabled your Group Management Audit Logs in your Local Windows Security Policy and be ingesting those logs. More information on how to enable them can be found here: http://whatevernetworks.com/auditing-group-membership-changes-in-active-directory/ + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.001 | Local Account | Persistence | + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that an administrator created and deleted an account in a short time period. Verifying activity with an administrator is advised. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Single Letter Process On Endpoint +This search looks for process names that consist only of a single letter. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1204.002](https://attack.mitre.org/techniques/T1204.002/) +- **Last Updated**: 2020-12-08 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest, Processes.user, Processes.process, Processes.process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| eval process_name_length = len(process_name), endExe = if(substr(process_name, -4) == ".exe", 1, 0) +| search process_name_length=5 AND endExe=1 +| table count, firstTime, lastTime, dest, user, process, process_name +| `single_letter_process_on_endpoint_filter` +``` +#### Associated Analytic Story + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1204.002 | Malicious File | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Single-letter executables are not always malicious. Investigate this activity with your normal incident-response process. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1204.002/single_letter_exe/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Spectre and Meltdown Vulnerable Systems +The search is used to detect systems that are still vulnerable to the Spectre and Meltdown vulnerabilities. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Vulnerabilities +- **ATT&CK**: +- **Last Updated**: 2017-01-07 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime from datamodel=Vulnerabilities where Vulnerabilities.cve ="CVE-2017-5753" OR Vulnerabilities.cve ="CVE-2017-5715" OR Vulnerabilities.cve ="CVE-2017-5754" by Vulnerabilities.dest +| `drop_dm_object_name(Vulnerabilities)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `spectre_and_meltdown_vulnerable_systems_filter` +``` +#### Associated Analytic Story + +* Spectre And Meltdown Vulnerabilities + + +#### How To Implement +The search requires that you are ingesting your vulnerability-scanner data and that it reports the CVE of the vulnerability identified. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that your vulnerability scanner is not detecting that the patches have been applied. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Spike in File Writes +The search looks for a sharp increase in the number of files written to a particular host + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-03-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Filesystem where Filesystem.action=created by _time span=1h, Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| eventstats max(_time) as maxtime +| stats count as num_data_samples max(eval(if(_time >= relative_time(maxtime, "-1d@d"), count, null))) as "count" avg(eval(if(_time upperBound) AND num_data_samples >=20, 1, 0) +| search isOutlier=1 +| `spike_in_file_writes_filter` +``` +#### Associated Analytic Story + +* SamSam Ransomware + +* Ryuk Ransomware + +* Ransomware + + +#### How To Implement +In order to implement this search, you must populate the Endpoint file-system data model node. This is typically populated via endpoint detection and response product, such as Carbon Black or endpoint data sources such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the file system. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It is important to understand that if you happen to install any new applications on your hosts or are copying a large number of files, you can expect to see a large increase of file modifications. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Splunk Enterprise Information Disclosure +This search allows you to look for evidence of exploitation for CVE-2018-11409, a Splunk Enterprise Information Disclosure Bug. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-06-14 + +
+ details + +#### Search +``` +index=_internal sourcetype=splunkd_ui_access server-info +| search clientip!=127.0.0.1 uri_path="*raw/services/server/info/server-info" +| rename clientip as src_ip, splunk_server as dest +| stats earliest(_time) as firstTime, latest(_time) as lastTime, values(uri) as uri, values(useragent) as http_user_agent, values(user) as user by src_ip, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `splunk_enterprise_information_disclosure_filter` +``` +#### Associated Analytic Story + +* Splunk Enterprise Vulnerability CVE-2018-11409 + + +#### How To Implement +The REST endpoint that exposes system information is also necessary for the proper operation of Splunk clustering and instrumentation. Whitelisting your Splunk systems will reduce false positives. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +Retrieving server information may be a legitimate API request. Verify that the attempt is a valid request for information. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Sunburst Correlation DLL and Network Event +The malware sunburst will load the malicious dll by SolarWinds.BusinessLayerHost.exe. After a period of 12-14 days, the malware will attempt to resolve a subdomain of avsvmcloud.com. This detections will correlate both events. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1203](https://attack.mitre.org/techniques/T1203/) +- **Last Updated**: 2020-12-14 + +
+ details + +#### Search +``` +(`sysmon` EventCode=7 ImageLoaded=*SolarWinds.Orion.Core.BusinessLayer.dll) OR (`sysmon` EventCode=22 QueryName=*avsvmcloud.com) +| eventstats dc(EventCode) AS dc_events +| where dc_events=2 +| stats min(_time) as firstTime max(_time) as lastTime values(ImageLoaded) AS ImageLoaded values(QueryName) AS QueryName by host +| rename host as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `sunburst_correlation_dll_and_network_event_filter` +``` +#### Associated Analytic Story + +* Sunburst Malware + + +#### How To Implement +This detection relies on sysmon logs with the Event ID 7, Driver loaded. Please tune your sysmon config that you DriverLoad event for SolarWinds.Orion.Core.BusinessLayer.dll is captured by Sysmon. Additionally, you need sysmon logs for Event ID 22, DNS Query. We suggest to run this detection at least once a day over the last 14 days. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1203 | Exploitation for Client Execution | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +unknown + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Supernova Webshell +This search aims to detect the Supernova webshell used in the SUNBURST attack. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1505.003](https://attack.mitre.org/techniques/T1505.003/) +- **Last Updated**: 2021-01-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count from datamodel=Web.Web where web.url=*logoimagehandler.ashx*codes* OR Web.url=*logoimagehandler.ashx*clazz* OR Web.url=*logoimagehandler.ashx*method* OR Web.url=*logoimagehandler.ashx*args* by Web.src Web.dest Web.url Web.vendor_product Web.user Web.http_user_agent _time span=1s +| `supernova_webshell_filter` +``` +#### Associated Analytic Story + +* Sunburst Malware + + +#### How To Implement +To successfully implement this search, you need to be monitoring web traffic to your Solarwinds Orion. The logs should be ingested into splunk and populating/mapped to the Web data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1505.003 | Web Shell | Persistence | + + +#### Kill Chain Phase + +* Exfiltration + + +#### Known False Positives +There might be false positives associted with this detection since items like args as a web argument is pretty generic. + +#### Reference + +* https://www.splunk.com/en_us/blog/security/detecting-supernova-malware-solarwinds-continued.html + +* https://www.guidepointsecurity.com/supernova-solarwinds-net-webshell-analysis/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Suspicious Changes to File Associations +This search looks for changes to registry values that control Windows file associations, executed by a process that is not typical for legitimate, routine changes to this area. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1546.001](https://attack.mitre.org/techniques/T1546.001/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name FROM datamodel=Endpoint.Processes where Processes.process_name!=Explorer.exe AND Processes.process_name!=OpenWith.exe by Processes.process_id Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| join [ +| tstats `security_content_summariesonly` values(Registry.registry_path) as registry_path count FROM datamodel=Endpoint.Registry where Registry.registry_path=*\\Explorer\\FileExts* by Registry.process_id Registry.dest +| `drop_dm_object_name("Registry")` +| table process_id dest registry_path] +| `suspicious_changes_to_file_associations_filter` +``` +#### Associated Analytic Story + +* Suspicious Windows Registry Activities + +* Windows File Extension and Association Abuse + + +#### How To Implement +To successfully implement this search you need to be ingesting information on registry changes that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` and `Registry` nodes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.001 | Change Default File Association | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +There may be other processes in your environment that users may legitimately use to modify file associations. If this is the case and you are finding false positives, you can modify the search to add those processes as exceptions. + +#### Reference + + +#### Test Dataset + + +_version_: 4 +
+ +--- + +### Suspicious Email - UBA Anomaly +This detection looks for emails that are suspicious because of their sender, domain rareness, or behavior differences. This is an anomaly generated by Splunk User Behavior Analytics (UBA). + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: UEBA +- **ATT&CK**: [T1566](https://attack.mitre.org/techniques/T1566/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +|tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(All_UEBA_Events.category) as category from datamodel=UEBA where nodename=All_UEBA_Events.UEBA_Anomalies All_UEBA_Events.UEBA_Anomalies.uba_model = "SuspiciousEmailDetectionModel" by All_UEBA_Events.description All_UEBA_Events.severity All_UEBA_Events.user All_UEBA_Events.uba_event_type All_UEBA_Events.link All_UEBA_Events.signature All_UEBA_Events.url All_UEBA_Events.UEBA_Anomalies.uba_model +| `drop_dm_object_name(All_UEBA_Events)` +| `drop_dm_object_name(UEBA_Anomalies)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_email___uba_anomaly_filter` +``` +#### Associated Analytic Story + +* Suspicious Emails + + +#### How To Implement +You must be ingesting data from email logs and have Splunk integrated with UBA. This anomaly is raised by a UBA detection model called "SuspiciousEmailDetectionModel." Ensure that this model is enabled on your UBA instance. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566 | Phishing | Initial Access | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +This detection model will alert on any sender domain that is seen for the first time. This could be a potential false positive. The next step is to investigate and add the URL to an allow list if you determine that it is a legitimate sender. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Suspicious Email Attachment Extensions +This search looks for emails that have attachments with suspicious file extensions. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email +- **ATT&CK**: [T1566.001](https://attack.mitre.org/techniques/T1566.001/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Email where All_Email.file_name="*" by All_Email.src_user, All_Email.file_name All_Email.message_id +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Email")` +| `suspicious_email_attachments` +| `suspicious_email_attachment_extensions_filter` +``` +#### Associated Analytic Story + +* Emotet Malware DHS Report TA18-201A + +* Suspicious Emails + + +#### How To Implement +You need to ingest data from emails. Specifically, the sender's address and the file names of any attachments must be mapped to the Email data model. \ + **Splunk Phantom Playbook Integration**\ +If Splunk Phantom is also configured in your environment, a Playbook called "Suspicious Email Attachment Investigate and Delete" can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, and add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search. The notable event will be sent to Phantom and the playbook will gather further information about the file attachment and its network behaviors. If Phantom finds malicious behavior and an analyst approves of the results, the email will be deleted from the user's inbox. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.001 | Spearphishing Attachment | Initial Access | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Suspicious File Write +The search looks for files created with names that have been linked to malicious activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2019-04-25 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Filesystem.action) as action values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem by Filesystem.file_name Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Filesystem)` +| `suspicious_writes` +| `suspicious_file_write_filter` +``` +#### Associated Analytic Story + +* Hidden Cobra Malware + + +#### How To Implement +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file system reads and writes. In addition, this search leverages an included lookup file that contains the names of the files to watch for, as well as a note to communicate why that file name is being monitored. This lookup file can be edited to add or remove file the file names you want to monitor. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible for a legitimate file to be created with the same name as one noted in the lookup file. Filenames listed in the lookup file should be unique enough that collisions are rare. Looking at the location of the file and the process responsible for the activity can help determine whether or not the activity is legitimate. + +#### Reference + + +#### Test Dataset + + +_version_: 3 +
+ +--- + +### Suspicious Java Classes +This search looks for suspicious Java classes that are often used to exploit remote command execution in common Java frameworks, such as Apache Struts. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-12-06 + +
+ details + +#### Search +``` +`stream_http` http_method=POST http_content_length>1 +| regex form_data="(?i)java\.lang\.(?:runtime +|processbuilder)" +| rename src_ip as src +| stats count earliest(_time) as firstTime, latest(_time) as lastTime, values(url) as uri, values(status) as status, values(http_user_agent) as http_user_agent by src, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_java_classes_filter` +``` +#### Associated Analytic Story + +* Apache Struts Vulnerability + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest data from your web-traffic appliances that serve or sit in the path of your Struts application servers. This can be accomplished by indexing data from a web proxy, or by using network traffic-analysis tools, such as Splunk Stream or Bro. + +#### Required field + + + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +There are no known false positives. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Suspicious MSBuild Rename +The following analytic identifies renamed instances of msbuild.exe executing. Msbuild.exe is natively found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319. During investigation, identify the code executed and what is executing a renamed instance of MSBuild. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1127.001](https://attack.mitre.org/techniques/T1127.001/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (OriginalFileName=msbuild.exe OR process_name=msbuild.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_rename_filter` +``` +#### Associated Analytic Story + +* Trusted Developer Utilities Proxy Execution MSBuild + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127.001 | MSBuild | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may use a moved copy of msbuild, triggering a false positive. + +#### Reference + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + +* https://github.com/infosecn1nja/MaliciousMacroMSBuild/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious MSBuild Spawn +The following analytic identifies wmiprvse.exe spawning msbuild.exe. This behavior is indicative of a COM object being utilized to spawn msbuild from wmiprvse.exe. It is common for MSBuild.exe to be spawned from devenv.exe while using Visual Studio. In this instance, there will be command line arguments and file paths. In a malicious instance, MSBuild.exe will spawn from non-standard processes and have no command line arguments. For example, MSBuild.exe spawning from explorer.exe, powershell.exe is far less common and should be investigated. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1127.001](https://attack.mitre.org/techniques/T1127.001/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=wmiprvse.exe AND Processes.process_name=msbuild.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_spawn_filter` +``` +#### Associated Analytic Story + +* Trusted Developer Utilities Proxy Execution MSBuild + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127.001 | MSBuild | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +#### Reference + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious Reg exe Process +This search looks for reg.exe being launched from a command prompt not started by the user. When a user launches cmd.exe, the parent process is usually explorer.exe. This search filters out those instances. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1112](https://attack.mitre.org/techniques/T1112/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.parent_process_name != explorer.exe Processes.process_name =cmd.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest Processes.process_id Processes.parent_process_id +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Processes where Processes.parent_process_name=cmd.exe Processes.process_name= reg.exe by Processes.parent_process_id Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename parent_process_id as process_id +|dedup process_id +| table process_id dest] +| `suspicious_reg_exe_process_filter` +``` +#### Associated Analytic Story + +* Windows Defense Evasion Tactics + +* Disabling Security Tools + +* DHS Report TA18-074A + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1112 | Modify Registry | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It's possible for system administrators to write scripts that exhibit this behavior. If this is the case, the search will need to be modified to filter them out. + +#### Reference + +* https://car.mitre.org/wiki/CAR-2013-03-001 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1112/atomic_red_team/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### Suspicious Regsvr32 Register Suspicious Path +Adversaries may abuse Regsvr32.exe to proxy execution of malicious code by using non-standard file extensions to load malciious DLLs. Upon investigating, look for network connections to remote destinations (internal or external). Review additional parrallel processes and child processes for additional activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.010](https://attack.mitre.org/techniques/T1218.010/) +- **Last Updated**: 2021-01-28 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=regsvr32.exe (Processes.process=*appdata* OR Processes.process=*programdata* OR Processes.process=*windows\temp*) (Processes.process!=*.dll Processes.process!=*.ax Processes.process!=*.ocx) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_regsvr32_register_suspicious_path_filter` +``` +#### Associated Analytic Story + +* Suspicious Regsvr32 Activity + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Tune the query by filtering additional extensions found to be used by legitimate processes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.010 | Regsvr32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Limited false positives with the query restricted to specified paths. Add more world writeable paths as tuning continues. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + +* https://support.microsoft.com/en-us/topic/how-to-use-the-regsvr32-tool-and-troubleshoot-regsvr32-error-messages-a98d960a-7392-e6fe-d90a-3f4e0cb543e5 + +* https://any.run/report/f29a7d2ecd3585e1e4208e44bcc7156ab5388725f1d29d03e7699da0d4598e7c/0826458b-5367-45cf-b841-c95a33a01718 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.010/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious Rundll32 Rename +The following analytic identifies renamed instances of rundll32.exe executing. rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, validate it is the legitimate rundll32.exe executing and what script content it is loading. This query relies on the OriginalFileName from Sysmon, or internal name from the PE meta data. Expand the query as needed by looking for specific command line arguments outlined in other analytics. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2021-02-04 + +
+ details + +#### Search +``` +`sysmon` EventID=1 OriginalFileName=RUNDLL32.EXE NOT process_name=rundll32.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_rename_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Tune and filter known instances where renamed rundll32.exe may be used. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use a moved copy of rundll32, triggering a false positive. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious Rundll32 StartW +The following analytic identifies rundll32.exe executing a DLL function name, Start and StartW, on the command line that is commonly observed with Cobalt Strike x86 and x64 DLL payloads. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. Typically, the DLL will be written and loaded from a world writeable path or user location. In most instances it will not have a valid certificate (Unsigned). During investigation, review the parent process and other parallel application execution. Capture and triage the DLL in question. In the instance of Cobalt Strike, rundll32.exe is the default process it opens and injects shellcode into. This default process can be changed, but typically is not. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-04 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*start* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_startw_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + +* Cobalt Strike + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use Start as a function and call it via the command line. Filter as needed. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://www.cobaltstrike.com/help-windows-executable + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious Rundll32 dllregisterserver +The following analytic identifies rundll32.exe using dllregisterserver on the command line to load a DLL. When a DLL is registered, the DllRegisterServer method entry point in the DLL is invoked. This is typically seen when a DLL is being registered on the system. Not every instance is considered malicious, but it will capture malicious use of it. During investigation, review the parent process and parrellel processes executing. Capture the DLL being loaded and inspect further. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-09 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*dllregisterserver* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_dllregisterserver_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +This is likely to produce false positives and will require some filtering. Tune the query by adding command line paths to known good DLLs, or filtering based on parent process names. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/seedworm-apt-iran-middle-east + +* https://github.com/pan-unit42/tweets/blob/master/2020-12-10-IOCs-from-Ursnif-infection-with-Delf-variant.txt + +* https://www.crowdstrike.com/blog/duck-hunting-with-falcon-complete-qakbot-zip-based-campaign/ + +* https://msdn.microsoft.com/en-us/library/windows/desktop/ms682162(v=vs.85).aspx + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious Rundll32 no CommandLine Arguments +The following analytic identifies rundll32.exe with no command line arguments. It is unusual for rundll32.exe to execute with no command line arguments present. This particular behavior is common with malicious software, including Cobalt Strike. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-09 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (process_name=rundll32.exe OR OriginalFileName=RUNDLL32.EXE) +| regex CommandLine="(rundll32\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_no_commandline_arguments_filter` +``` +#### Associated Analytic Story + +* Suspicious Rundll32 Activity + +* Cobalt Strike + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, some legitimate applications may use a moved copy of rundll32, triggering a false positive. + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious microsoft workflow compiler rename +The following analytic identifies a renamed instance of microsoft.workflow.compiler.exe. Microsoft.workflow.compiler.exe is natively found in C:\Windows\Microsoft.NET\Framework64\v4.0.30319 and is rarely utilized. When investigating, identify the executed code on disk and review. A spawned child process from microsoft.workflow.compiler.exe is uncommon. In any instance, microsoft.workflow.compiler.exe spawning from an Office product or any living off the land binary is highly suspect. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1127](https://attack.mitre.org/techniques/T1127/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` +`sysmon` EventID=1 (OriginalFileName=microsoft.workflow.compiler.exe OR process_name=microsoft.workflow.compiler.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_microsoft_workflow_compiler_rename_filter` +``` +#### Associated Analytic Story + +* Trusted Developer Utilities Proxy Execution + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127 | Trusted Developer Utilities Proxy Execution | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may use a moved copy of microsoft.workflow.compiler.exe, triggering a false positive. + +#### Reference + +* https://lolbas-project.github.io/lolbas/Binaries/Microsoft.Workflow.Compiler/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md#atomic-test-6---microsoftworkflowcompilerexe-payload-execution + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious microsoft workflow compiler usage +The following analytic identifies microsoft.workflow.compiler.exe usage. microsoft.workflow.compiler.exe is natively found in C:\Windows\Microsoft.NET\Framework64\v4.0.30319 and is rarely utilized. When investigating, identify the executed code on disk and review. It is not a commonly used process by many applications. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1127](https://attack.mitre.org/techniques/T1127/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=microsoft.workflow.compiler.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_microsoft_workflow_compiler_usage_filter` +``` +#### Associated Analytic Story + +* Trusted Developer Utilities Proxy Execution + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127 | Trusted Developer Utilities Proxy Execution | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, limited instances have been identified coming from native Microsoft utilities similar to SCCM. + +#### Reference + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md#atomic-test-6---microsoftworkflowcompilerexe-payload-execution + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious msbuild path +The following analytic identifies msbuild.exe executing from a non-standard path. Msbuild.exe is natively found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Instances of Visual Studio will run a copy of msbuild.exe. A moved instance of MSBuild is suspicious, however there are instances of build applications that will move or use a copy of MSBuild. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1127.001](https://attack.mitre.org/techniques/T1127.001/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=msbuild.exe AND (Processes.process_path!=c:\\windows\\microsoft.net\\framework*\\v*\\*) by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_path_filter` +``` +#### Associated Analytic Story + +* Trusted Developer Utilities Proxy Execution MSBuild + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127.001 | MSBuild | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Some legitimate applications may use a moved copy of msbuild.exe, triggering a false positive. Baselining of MSBuild.exe usage is recommended to better understand it's path usage. Visual Studio runs an instance out of a path that will need to be filtered on. + +#### Reference + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious mshta child process +The following analytic identifies child processes spawning from "mshta.exe". The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, parent process "mshta.exe" and its child process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=mshta.exe AND (Processes.process_name=powershell.exe OR Processes.process_name=colorcpl.exe OR Processes.process_name=msbuild.exe OR Processes.process_name=microsoft.workflow.compiler.exe OR Processes.process_name=searchprotocolhost.exe OR Processes.process_name=scrcons.exe OR Processes.process_name=cscript.exe OR Processes.process_name=wscript.exe OR Processes.process_name=powershell.exe OR Processes.process_name=cmd.exe) by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_mshta_child_process_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +#### Reference + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious mshta spawn +The following analytic identifies wmiprvse.exe spawning mshta.exe. This behavior is indicative of a DCOM object being utilized to spawn mshta from wmiprvse.exe or svchost.exe. In this instance, adversaries may use LethalHTA that will spawn mshta.exe from svchost.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.005](https://attack.mitre.org/techniques/T1218.005/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.parent_process_name=svchost.exe OR Processes.parent_process_name=wmiprvse.exe) AND Processes.process_name=mshta.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_mshta_spawn_filter` +``` +#### Associated Analytic Story + +* Suspicious MSHTA Activity + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +#### Reference + +* https://codewhitesec.blogspot.com/2018/07/lethalhta.html + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Suspicious wevtutil Usage +The wevtutil.exe application is the windows event log utility. This searches for wevtutil.exe with parameters for clearing the application, security, setup, or system event logs. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1070.001](https://attack.mitre.org/techniques/T1070.001/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = wevtutil.exe Processes.process="*cl*" (Processes.process="*System*" OR Processes.process="*Security*" OR Processes.process="*Setup*" OR Processes.process="*Application*") by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `suspicious_wevtutil_usage_filter` +``` +#### Associated Analytic Story + +* Windows Log Manipulation + +* Ransomware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070.001 | Clear Windows Event Logs | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +The wevtutil.exe application is a legitimate Windows event log utility. Administrators may use it to manage Windows event logs. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Suspicious writes to System Volume Information +This search detects writes to the 'System Volume Information' folder by something other than the System process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1036](https://attack.mitre.org/techniques/T1036/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` +(`sysmon` OR tag=process) EventCode=11 process_id!=4 file_path=*System\ Volume\ Information* +| stats count min(_time) as firstTime max(_time) as lastTime by dest, Image, file_path +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_writes_to_system_volume_information_filter` +``` +#### Associated Analytic Story + +* Collection and Staging + + +#### How To Implement +You need to be ingesting logs with both the process name and command-line from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036 | Masquerading | Defense Evasion | + + +#### Kill Chain Phase + + +#### Known False Positives +It is possible that other utilities or system processes may legitimately write to this folder. Investigate and modify the search to include exceptions as appropriate. + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### Suspicious writes to windows Recycle Bin +This search detects writes to the recycle bin by a process other than explorer.exe. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1036](https://attack.mitre.org/techniques/T1036/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.file_path) as file_path values(Filesystem.file_name) as file_name FROM datamodel=Endpoint.Filesystem where Filesystem.file_path = "*$Recycle.Bin*" by Filesystem.process_id Filesystem.dest +| `drop_dm_object_name("Filesystem")` +| search [ +| tstats `security_content_summariesonly` values(Processes.user) as user values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name FROM datamodel=Endpoint.Processes where Processes.process_name != "explorer.exe" by Processes.process_id Processes.dest +| `drop_dm_object_name("Processes")` +| table process_id dest] +| `suspicious_writes_to_windows_recycle_bin_filter` +``` +#### Associated Analytic Story + +* Collection and Staging + + +#### How To Implement +To successfully implement this search you need to be ingesting information on filesystem and process logs responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` and `Filesystem` nodes. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036 | Masquerading | Defense Evasion | + + +#### Kill Chain Phase + + +#### Known False Positives +Because the Recycle Bin is a hidden folder in modern versions of Windows, it would be unusual for a process other than explorer.exe to write to it. Incidents should be investigated as appropriate. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036/write_to_recycle_bin/windows-sysmon.log + + +_version_: 4 +
+ +--- + +### System Information Discovery Detection +Detect system information discovery techniques used by attackers to understand configurations of the system to further exploit it. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1082](https://attack.mitre.org/techniques/T1082/) +- **Last Updated**: 2020-10-12 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process="*wmic* qfe*" OR Processes.process=*systeminfo* OR Processes.process=*hostname*) by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| eventstats dc(process) as dc_processes_by_dest by dest +| where dc_processes_by_dest > 2 +| stats values(process) min(firstTime) as firstTime max(lastTime) as lastTime by user, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `system_information_discovery_detection_filter` +``` +#### Associated Analytic Story + +* Discovery Techniques + + +#### How To Implement +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1082 | System Information Discovery | Discovery | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators debugging servers + +#### Reference + +* https://oscp.infosecsanyam.in/priv-escalation/windows-priv-escalation + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1082/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### System Process Running from Unexpected Location +An attacker tries might try to use different version of a system command without overriding original, or they might try to avoid some detection running the process from a different folder. This detection checks that a list of system processes run inside C:\\Windows\System32 or C:\\Windows\SysWOW64 The list of system processes has been extracted from https://github.com/splunk/security_content/blob/develop/lookups/is_windows_system_file.csv and the original detection https://github.com/splunk/security_content/blob/develop/detections/system_processes_run_from_unexpected_locations.yml + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: [T1036](https://attack.mitre.org/techniques/T1036/) +- **Last Updated**: 2020-08-25 + +
+ details + +#### Search +``` + $ssa_input = +| from read_ssa_enriched_events() +| eval device=ucast(map_get(input_event, "dest_device_id"), "string", null), user=ucast(map_get(input_event, "dest_user_id"), "string", null), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), process_path=lower(ucast(map_get(input_event, "process_path"), "string", null)); +$cond_1 = +| from $ssa_input +| where process_name="arp.exe" OR process_name="adaptertroubleshooter.exe" OR process_name="applicationframehost.exe" OR process_name="atbroker.exe" OR process_name="authhost.exe" OR process_name="autoworkplace.exe" OR process_name="axinstui.exe" OR process_name="backgroundtransferhost.exe" OR process_name="bdehdcfg.exe" OR process_name="bdeuisrv.exe" OR process_name="bdeunlockwizard.exe" OR process_name="bitlockerdeviceencryption.exe" OR process_name="bitlockerwizard.exe" OR process_name="bitlockerwizardelev.exe" OR process_name="bytecodegenerator.exe" OR process_name="camerasettingsuihost.exe" OR process_name="castsrv.exe" OR process_name="certenrollctrl.exe" OR process_name="checknetisolation.exe" OR process_name="clipup.exe" OR process_name="cloudexperiencehostbroker.exe" OR process_name="cloudnotifications.exe" OR process_name="cloudstoragewizard.exe" OR process_name="compmgmtlauncher.exe" OR process_name="compattelrunner.exe" OR process_name="computerdefaults.exe" OR process_name="credentialuibroker.exe" OR process_name="dfdwiz.exe" OR process_name="dwwin.exe" OR process_name="dataexchangehost.exe" OR process_name="defrag.exe" OR process_name="devicedisplayobjectprovider.exe" OR process_name="deviceeject.exe" OR process_name="deviceenroller.exe" OR process_name="devicepairingwizard.exe" OR process_name="deviceproperties.exe" OR process_name="disksnapshot.exe" OR process_name="dism.exe" OR process_name="displayswitch.exe" OR process_name="dmnotificationbroker.exe" OR process_name="dmomacpmo.exe" OR process_name="dpiscaling.exe" OR process_name="dsmusertask.exe" OR process_name="dxpserver.exe" OR process_name="edpcleanup.exe" OR process_name="eosnotify.exe" OR process_name="eap3host.exe" OR process_name="easpoliciesbrokerhost.exe" OR process_name="easeofaccessdialog.exe" OR process_name="ehstorauthn.exe" OR process_name="fxscover.exe" OR process_name="fxssvc.exe" OR process_name="fxsunatd.exe" OR process_name="filehistory.exe" OR process_name="fondue.exe" OR process_name="gamepanel.exe" OR process_name="genvalobj.exe" OR process_name="gettingstarted.exe" OR process_name="hostname.exe" OR process_name="icsentitlementhost.exe" OR process_name="infdefaultinstall.exe" OR process_name="installagent.exe" OR process_name="languagecomponentsinstallercomhandler.exe" OR process_name="launchtm.exe" OR process_name="launchwinapp.exe" OR process_name="legacynetuxhost.exe" OR process_name="licensemanagershellext.exe" OR process_name="licensingui.exe" OR process_name="locationnotificationwindows.exe" OR process_name="locationnotifications.exe" OR process_name="locator.exe" OR process_name="lockapphost.exe" OR process_name="lockscreencontentserver.exe" OR process_name="logonui.exe" OR process_name="lsaiso.exe" OR process_name="mdeserver.exe" OR process_name="mdmagent.exe" OR process_name="mdmappinstaller.exe" OR process_name="mrinfo.exe" OR process_name="mrt.exe" OR process_name="mschedexe.exe" OR process_name="magnify.exe" OR process_name="mbaeparsertask.exe" OR process_name="mdres.exe" OR process_name="mdsched.exe" OR process_name="migautoplay.exe" OR process_name="mpsigstub.exe" OR process_name="msspellcheckinghost.exe" OR process_name="muiunattend.exe" OR process_name="multidigimon.exe" OR process_name="musnotification.exe" OR process_name="musnotificationux.exe" OR process_name="napstat.exe" OR process_name="netstat.exe" OR process_name="narrator.exe" OR process_name="netcfgnotifyobjecthost.exe" OR process_name="netevtfwdr.exe" OR process_name="netproj.exe" OR process_name="netplwiz.exe" OR process_name="networkuxbroker.exe"; +$cond_2 = +| from $ssa_input +| where process_name="openwith.exe" OR process_name="optionalfeatures.exe" OR process_name="pathping.exe" OR process_name="ping.exe" OR process_name="passwordonwakesettingflyout.exe" OR process_name="pickerhost.exe" OR process_name="pkgmgr.exe" OR process_name="pnpunattend.exe" OR process_name="pnputil.exe" OR process_name="presentationhost.exe" OR process_name="presentationsettings.exe" OR process_name="printbrmui.exe" OR process_name="printdialoghost.exe" OR process_name="printdialoghost3d.exe" OR process_name="printisolationhost.exe" OR process_name="proximityuxhost.exe" OR process_name="rdspnf.exe" OR process_name="rmactivate.exe" OR process_name="rmactivate_isv.exe" OR process_name="rmactivate_ssp.exe" OR process_name="rmactivate_ssp_isv.exe" OR process_name="route.exe" OR process_name="rdpsa.exe" OR process_name="rdpsaproxy.exe" OR process_name="rdpsauachelper.exe" OR process_name="reagentc.exe" OR process_name="recoverydrive.exe" OR process_name="register-cimprovider.exe" OR process_name="registeriepkeys.exe" OR process_name="relpost.exe" OR process_name="remoteposworker.exe" OR process_name="rmclient.exe" OR process_name="robocopy.exe" OR process_name="rpcping.exe" OR process_name="runlegacycplelevated.exe" OR process_name="runtimebroker.exe" OR process_name="sihclient.exe" OR process_name="searchfilterhost.exe" OR process_name="searchindexer.exe" OR process_name="searchprotocolhost.exe" OR process_name="secedit.exe" OR process_name="sensordataservice.exe" OR process_name="setieinstalleddate.exe" OR process_name="settingsynchost.exe" OR process_name="slidetoshutdown.exe" OR process_name="smartscreensettings.exe" OR process_name="sndvol.exe" OR process_name="snippingtool.exe" OR process_name="soundrecorder.exe" OR process_name="spaceagent.exe" OR process_name="sppextcomobj.exe" OR process_name="srtasks.exe" OR process_name="stikynot.exe" OR process_name="synchost.exe" OR process_name="sysreseterr.exe" OR process_name="systempropertiesadvanced.exe" OR process_name="systempropertiescomputername.exe" OR process_name="systempropertiesdataexecutionprevention.exe" OR process_name="systempropertieshardware.exe" OR process_name="systempropertiesperformance.exe" OR process_name="systempropertiesprotection.exe" OR process_name="systempropertiesremote.exe" OR process_name="systemsettingsadminflows.exe" OR process_name="systemsettingsbroker.exe" OR process_name="systemsettingsremovedevice.exe" OR process_name="tcpsvcs.exe" OR process_name="tracert.exe" OR process_name="tstheme.exe" OR process_name="tswbprxy.exe" OR process_name="tapiunattend.exe" OR process_name="taskmgr.exe" OR process_name="thumbnailextractionhost.exe" OR process_name="tokenbrokercookies.exe" OR process_name="tpminit.exe" OR process_name="tswpfwrp.exe" OR process_name="ui0detect.exe" OR process_name="upgraderesultsui.exe" OR process_name="useraccountbroker.exe" OR process_name="useraccountcontrolsettings.exe" OR process_name="usoclient.exe" OR process_name="utilman.exe" OR process_name="vssvc.exe" OR process_name="vaultcmd.exe" OR process_name="vaultsysui.exe" OR process_name="wfs.exe" OR process_name="wmpdmc.exe" OR process_name="wpdshextautoplay.exe" OR process_name="wscollect.exe" OR process_name="wsmanhttpconfig.exe" OR process_name="wsreset.exe" OR process_name="wudfhost.exe" OR process_name="wwahost.exe" OR process_name="wallpaperhost.exe" OR process_name="webcache.exe" OR process_name="werfault.exe" OR process_name="werfaultsecure.exe" OR process_name="winsat.exe" OR process_name="windows.media.backgroundplayback.exe" OR process_name="windowsactiondialog.exe" OR process_name="windowsanytimeupgrade.exe" OR process_name="windowsanytimeupgraderesults.exe"; +$cond_3 = +| from $ssa_input +| where process_name="windowsanytimeupgradeui.exe" OR process_name="windowsupdateelevatedinstaller.exe" OR process_name="workfolders.exe" OR process_name="wpcmon.exe" OR process_name="acu.exe" OR process_name="aitagent.exe" OR process_name="aitstatic.exe" OR process_name="alg.exe" OR process_name="appidcertstorecheck.exe" OR process_name="appidpolicyconverter.exe" OR process_name="at.exe" OR process_name="attrib.exe" OR process_name="audiodg.exe" OR process_name="auditpol.exe" OR process_name="autochk.exe" OR process_name="autoconv.exe" OR process_name="autofmt.exe" OR process_name="baaupdate.exe" OR process_name="backgroundtaskhost.exe" OR process_name="bcastdvr.exe" OR process_name="bcdboot.exe" OR process_name="bcdedit.exe" OR process_name="bdechangepin.exe" OR process_name="bdeunlock.exe" OR process_name="bitsadmin.exe" OR process_name="bootcfg.exe" OR process_name="bootim.exe" OR process_name="bootsect.exe" OR process_name="bridgeunattend.exe" OR process_name="browser_broker.exe" OR process_name="bthudtask.exe" OR process_name="cacls.exe" OR process_name="calc.exe" OR process_name="cdpreference.exe" OR process_name="certreq.exe" OR process_name="certutil.exe" OR process_name="change.exe" OR process_name="changepk.exe" OR process_name="charmap.exe" OR process_name="chglogon.exe" OR process_name="chgport.exe" OR process_name="chgusr.exe" OR process_name="chkdsk.exe" OR process_name="chkntfs.exe" OR process_name="choice.exe" OR process_name="cipher.exe" OR process_name="cleanmgr.exe" OR process_name="cliconfg.exe" OR process_name="clip.exe" OR process_name="cmd.exe" OR process_name="cmdkey.exe" OR process_name="cmdl32.exe" OR process_name="cmmon32.exe" OR process_name="cmstp.exe" OR process_name="cofire.exe" OR process_name="colorcpl.exe" OR process_name="comp.exe" OR process_name="compact.exe" OR process_name="conhost.exe" OR process_name="consent.exe" OR process_name="control.exe" OR process_name="convert.exe" OR process_name="credwiz.exe" OR process_name="cscript.exe" OR process_name="csrss.exe" OR process_name="ctfmon.exe" OR process_name="cttune.exe" OR process_name="cttunesvr.exe" OR process_name="dashost.exe" OR process_name="dccw.exe" OR process_name="dcomcnfg.exe" OR process_name="ddodiag.exe" OR process_name="dfrgui.exe" OR process_name="dialer.exe" OR process_name="diantz.exe" OR process_name="dinotify.exe" OR process_name="diskpart.exe" OR process_name="diskperf.exe" OR process_name="diskraid.exe" OR process_name="dispdiag.exe" OR process_name="djoin.exe" OR process_name="dllhost.exe" OR process_name="dllhst3g.exe" OR process_name="dmcertinst.exe" OR process_name="dmcfghost.exe" OR process_name="dmclient.exe" OR process_name="dnscacheugc.exe" OR process_name="doskey.exe" OR process_name="dpapimig.exe" OR process_name="dpnsvr.exe" OR process_name="driverquery.exe" OR process_name="drvcfg.exe" OR process_name="drvinst.exe" OR process_name="dsregcmd.exe" OR process_name="dstokenclean.exe" OR process_name="dvdplay.exe" OR process_name="dvdupgrd.exe" OR process_name="dwm.exe" OR process_name="dxdiag.exe" OR process_name="easinvoker.exe" OR process_name="efsui.exe"; +$cond_4 = +| from $ssa_input +| where process_name="embeddedapplauncher.exe" OR process_name="esentutl.exe" OR process_name="eudcedit.exe" OR process_name="eventcreate.exe" OR process_name="eventvwr.exe" OR process_name="expand.exe" OR process_name="extrac32.exe" OR process_name="fc.exe" OR process_name="fhmanagew.exe" OR process_name="find.exe" OR process_name="findstr.exe" OR process_name="finger.exe" OR process_name="fixmapi.exe" OR process_name="fltmc.exe" OR process_name="fodhelper.exe" OR process_name="fontdrvhost.exe" OR process_name="fontview.exe" OR process_name="forfiles.exe" OR process_name="fsavailux.exe" OR process_name="fsquirt.exe" OR process_name="fsutil.exe" OR process_name="ftp.exe" OR process_name="fvenotify.exe" OR process_name="fveprompt.exe" OR process_name="getmac.exe" OR process_name="gpresult.exe" OR process_name="gpscript.exe" OR process_name="gpupdate.exe" OR process_name="grpconv.exe" OR process_name="hdwwiz.exe" OR process_name="help.exe" OR process_name="hwrcomp.exe" OR process_name="hwrreg.exe" OR process_name="icacls.exe" OR process_name="icardagt.exe" OR process_name="icsunattend.exe" OR process_name="ie4uinit.exe" OR process_name="ieunatt.exe" OR process_name="ieetwcollector.exe" OR process_name="iexpress.exe" OR process_name="immersivetpmvscmgrsvr.exe" OR process_name="ipconfig.exe" OR process_name="irftp.exe" OR process_name="iscsicli.exe" OR process_name="iscsicpl.exe" OR process_name="isoburn.exe" OR process_name="klist.exe" OR process_name="ksetup.exe" OR process_name="ktmutil.exe" OR process_name="label.exe" OR process_name="licensingdiag.exe" OR process_name="lodctr.exe" OR process_name="logagent.exe" OR process_name="logman.exe" OR process_name="logoff.exe" OR process_name="lpkinstall.exe" OR process_name="lpksetup.exe" OR process_name="lpremove.exe" OR process_name="lsass.exe" OR process_name="lsm.exe" OR process_name="makecab.exe" OR process_name="manage-bde.exe" OR process_name="mblctr.exe" OR process_name="mcbuilder.exe" OR process_name="mctadmin.exe" OR process_name="mfpmp.exe" OR process_name="mmc.exe" OR process_name="mobsync.exe" OR process_name="mountvol.exe" OR process_name="mpnotify.exe" OR process_name="msconfig.exe" OR process_name="msdt.exe" OR process_name="msdtc.exe" OR process_name="msfeedssync.exe" OR process_name="msg.exe" OR process_name="mshta.exe" OR process_name="msiexec.exe" OR process_name="msinfo32.exe" OR process_name="mspaint.exe" OR process_name="msra.exe" OR process_name="mstsc.exe" OR process_name="mtstocom.exe" OR process_name="nbtstat.exe" OR process_name="ndadmin.exe" OR process_name="net.exe" OR process_name="net1.exe" OR process_name="netbtugc.exe" OR process_name="netcfg.exe" OR process_name="netiougc.exe" OR process_name="netsh.exe" OR process_name="newdev.exe" OR process_name="nltest.exe" OR process_name="notepad.exe" OR process_name="nslookup.exe" OR process_name="ntoskrnl.exe" OR process_name="ntprint.exe" OR process_name="ocsetup.exe" OR process_name="odbcad32.exe" OR process_name="odbcconf.exe" OR process_name="omadmclient.exe" OR process_name="omadmprc.exe"; +$cond_5 = +| from $ssa_input +| where process_name="openfiles.exe" OR process_name="osk.exe" OR process_name="p2phost.exe" OR process_name="pcalua.exe" OR process_name="pcaui.exe" OR process_name="pcawrk.exe" OR process_name="pcwrun.exe" OR process_name="perfmon.exe" OR process_name="phoneactivate.exe" OR process_name="plasrv.exe" OR process_name="poqexec.exe" OR process_name="powercfg.exe" OR process_name="prevhost.exe" OR process_name="print.exe" OR process_name="printfilterpipelinesvc.exe" OR process_name="printui.exe" OR process_name="proquota.exe" OR process_name="provtool.exe" OR process_name="psr.exe" OR process_name="pwlauncher.exe" OR process_name="qappsrv.exe" OR process_name="qprocess.exe" OR process_name="query.exe" OR process_name="quser.exe" OR process_name="qwinsta.exe" OR process_name="rasautou.exe" OR process_name="rasdial.exe" OR process_name="raserver.exe" OR process_name="rasphone.exe" OR process_name="rdpclip.exe" OR process_name="rdpinput.exe" OR process_name="rdrleakdiag.exe" OR process_name="recdisc.exe" OR process_name="recover.exe" OR process_name="reg.exe" OR process_name="regedt32.exe" OR process_name="regini.exe" OR process_name="regsvr32.exe" OR process_name="rekeywiz.exe" OR process_name="relog.exe" OR process_name="repair-bde.exe" OR process_name="replace.exe" OR process_name="reset.exe" OR process_name="resmon.exe" OR process_name="rmttpmvscmgrsvr.exe" OR process_name="rrinstaller.exe" OR process_name="rstrui.exe" OR process_name="runas.exe" OR process_name="rundll32.exe" OR process_name="runonce.exe" OR process_name="rwinsta.exe" OR process_name="sbunattend.exe" OR process_name="sc.exe" OR process_name="schtasks.exe" OR process_name="sdbinst.exe" OR process_name="sdchange.exe" OR process_name="sdclt.exe" OR process_name="sdiagnhost.exe" OR process_name="secinit.exe" OR process_name="services.exe" OR process_name="sessionmsg.exe" OR process_name="sethc.exe" OR process_name="setspn.exe" OR process_name="setupcl.exe" OR process_name="setupugc.exe" OR process_name="setx.exe" OR process_name="sfc.exe" OR process_name="shadow.exe" OR process_name="shrpubw.exe" OR process_name="shutdown.exe" OR process_name="sigverif.exe" OR process_name="sihost.exe" OR process_name="slui.exe" OR process_name="smss.exe" OR process_name="snmptrap.exe" OR process_name="sort.exe" OR process_name="spinstall.exe" OR process_name="spoolsv.exe" OR process_name="sppsvc.exe" OR process_name="spreview.exe" OR process_name="srdelayed.exe" OR process_name="subst.exe" OR process_name="svchost.exe" OR process_name="sxstrace.exe" OR process_name="syskey.exe" OR process_name="systeminfo.exe" OR process_name="systemreset.exe" OR process_name="systray.exe" OR process_name="tabcal.exe" OR process_name="takeown.exe" OR process_name="taskeng.exe" OR process_name="taskhost.exe" OR process_name="taskhostw.exe" OR process_name="taskkill.exe" OR process_name="tasklist.exe" OR process_name="taskmgr.exe" OR process_name="tcmsetup.exe" OR process_name="timeout.exe" OR process_name="tpmvscmgr.exe" OR process_name="tpmvscmgrsvr.exe"; +$cond_6 = +| from $ssa_input +| where process_name="tracerpt.exe" OR process_name="tscon.exe" OR process_name="tsdiscon.exe" OR process_name="tskill.exe" OR process_name="typeperf.exe" OR process_name="tzsync.exe" OR process_name="tzutil.exe" OR process_name="ucsvc.exe" OR process_name="unlodctr.exe" OR process_name="unregmp2.exe" OR process_name="upnpcont.exe" OR process_name="userinit.exe" OR process_name="vds.exe" OR process_name="vdsldr.exe" OR process_name="verclsid.exe" OR process_name="verifier.exe" OR process_name="verifiergui.exe" OR process_name="vmicsvc.exe" OR process_name="vssadmin.exe" OR process_name="w32tm.exe" OR process_name="waitfor.exe" OR process_name="wbadmin.exe" OR process_name="wbengine.exe" OR process_name="wecutil.exe" OR process_name="wermgr.exe" OR process_name="wevtutil.exe" OR process_name="wextract.exe" OR process_name="where.exe" OR process_name="whoami.exe" OR process_name="wiaacmgr.exe" OR process_name="wiawow64.exe" OR process_name="wifitask.exe" OR process_name="wimserv.exe" OR process_name="wininit.exe" OR process_name="winload.exe" OR process_name="winlogon.exe" OR process_name="winresume.exe" OR process_name="winrs.exe" OR process_name="winrshost.exe" OR process_name="winver.exe" OR process_name="wisptis.exe" OR process_name="wkspbroker.exe" OR process_name="wksprt.exe" OR process_name="wlanext.exe" OR process_name="wlrmdr.exe" OR process_name="wowreg32.exe" OR process_name="wpnpinst.exe" OR process_name="wpr.exe" OR process_name="write.exe" OR process_name="wscript.exe" OR process_name="wsmprovhost.exe" OR process_name="wsqmcons.exe" OR process_name="wuapihost.exe" OR process_name="wuapp.exe" OR process_name="wuauclt.exe" OR process_name="wusa.exe" OR process_name="xcopy.exe" OR process_name="xpsrchvw.exe" OR process_name="xwizard.exe"; + +| from $cond_1 +| union $cond_2 +| union $cond_3 +| union $cond_4 +| union $cond_5 +| union $cond_6 +| where process_path!="c:\\windows\\system32" AND process_path!="c:\\windows\\syswow64" +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(device, user), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +Collect endpoint data such as sysmon or 4688 events. + +#### Required field + +* dest_device_id + +* process_name + +* _time + +* dest_user_id + +* process_path + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036 | Masquerading | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### System Processes Run From Unexpected Locations +This search looks for system processes that normally run out of C:\Windows\System32\ or C:\Windows\SysWOW64 that are not run from that location. This can indicate a malicious process that is trying to hide as a legitimate process. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/) +- **Last Updated**: 2020-12-08 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_path !="C:\\Windows\\System32*" Processes.process_path !="C:\\Windows\\SysWOW64*" by Processes.user Processes.dest Processes.process_name Processes.process_id Processes.process_path Processes.parent_process_name Processes.process_hash +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `is_windows_system_file` +| `system_processes_run_from_unexpected_locations_filter` +``` +#### Associated Analytic Story + +* Suspicious Command-Line Executions + +* Unusual Processes + +* Ransomware + + +#### How To Implement +To successfully implement this search you need to ingest details about process execution from your hosts. Specifically, this search requires the process name and the full path to the process executable. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036.003 | Rename System Utilities | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### TOR Traffic +This search looks for network traffic identified as The Onion Router (TOR), a benign anonymity network which can be abused for a variety of nefarious purposes. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: [T1071.001](https://attack.mitre.org/techniques/T1071.001/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.app=tor AND All_Traffic.action=allowed by All_Traffic.src_ip All_Traffic.dest_ip All_Traffic.dest_port All_Traffic.action +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `tor_traffic_filter` +``` +#### Associated Analytic Story + +* Prohibited Traffic Allowed or Protocol Mismatch + +* Ransomware + +* Command and Control + +* Sunburst Malware + + +#### How To Implement +In order to properly run this search, Splunk needs to ingest data from firewalls or other network control devices that mediate the traffic allowed into an environment. This is necessary so that the search can identify an 'action' taken on the traffic of interest. The search requires the Network_Traffic data model be populated. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.001 | Web Protocols | Command and Control | + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +None at this time + +#### Reference + + +#### Test Dataset + + +_version_: 2 +
+ +--- + +### USN Journal Deletion +The fsutil.exe application is a legitimate Windows utility used to perform tasks related to the file allocation table (FAT) and NTFS file systems. The update sequence number (USN) change journal provides a log of all changes made to the files on the disk. This search looks for fsutil.exe deleting the USN journal. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1070](https://attack.mitre.org/techniques/T1070/) +- **Last Updated**: 2018-12-03 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=fsutil.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search process="*deletejournal*" AND process="*usn*" +| `usn_journal_deletion_filter` +``` +#### Associated Analytic Story + +* Windows Log Manipulation + +* Ransomware + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070 | Indicator Removal on Host | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### Uncommon Processes On Endpoint +This search looks for applications on the endpoint that you have marked as uncommon. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1204.002](https://attack.mitre.org/techniques/T1204.002/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.user Processes.process Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `uncommon_processes` +|`uncommon_processes_on_endpoint_filter` +``` +#### Associated Analytic Story + +* Windows Privilege Escalation + +* Unusual Processes + +* Cloud Federated Credential Abuse + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. This search uses a lookup file `uncommon_processes_default.csv` to track various features of process names that are usually uncommon in most environments. Please consider updating `uncommon_processes_local.csv` to hunt for processes that are uncommon in your environment. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1204.002 | Malicious File | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 4 +
+ +--- + +### Unload Sysmon Filter Driver +Attackers often disable security tools to avoid detection. This search looks for the usage of process `fltMC.exe` to unload a Sysmon Driver that will stop sysmon from collecting the data. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.001](https://attack.mitre.org/techniques/T1562.001/) +- **Last Updated**: 2020-07-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=fltMC.exe AND Processes.process=*unload* AND Processes.process=*SysmonDrv* by Processes.process_name Processes.process_id Processes.parent_process_name Processes.process Processes.dest Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`unload_sysmon_filter_driver_filter` +| table firstTime lastTime dest user count process_name process_id parent_process_name process +``` +#### Associated Analytic Story + +* Disabling Security Tools + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. This search is also shipped with `unload_sysmon_filter_driver_filter` macro, update this macro to filter out false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.001 | Disable or Modify Tools | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives + + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/atomic_red_team/windows-sysmon.log + + +_version_: 3 +
+ +--- + +### Unsigned Image Loaded by LSASS +This search detects loading of unsigned images by LSASS. Deprecated because too noisy. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/) +- **Last Updated**: 2019-12-06 + +
+ details + +#### Search +``` +`sysmon` EventID=7 Image=*lsass.exe Signed=false +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, Image, ImageLoaded, Signed, SHA1 +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `unsigned_image_loaded_by_lsass_filter` +``` +#### Associated Analytic Story + +* Credential Dumping + + +#### How To Implement +This search needs Sysmon Logs with a sysmon configuration, which includes EventCode 7 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Other tools could load images into LSASS for legitimate reason. But enterprise tools should always use signed DLLs. + +#### Reference + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Unsuccessful Netbackup backups +This search gives you the hosts where a backup was attempted and then failed. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-09-12 + +
+ details + +#### Search +``` +`netbackup` +| stats latest(_time) as latestTime by COMPUTERNAME, MESSAGE +| search MESSAGE="An error occurred, failed to backup." +| `security_content_ctime(latestTime)` +| rename COMPUTERNAME as dest, MESSAGE as signature +| table latestTime, dest, signature +| `unsuccessful_netbackup_backups_filter` +``` +#### Associated Analytic Story + +* Monitor Backup Solution + + +#### How To Implement +To successfully implement this search you need to obtain data from your backup solution, either from the backup logs on your endpoints or from a central server responsible for performing the backups. If you do not use Netbackup, you can modify this search for your specific backup solution. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +None identified + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Unusually Long Command Line +Command lines that are extremely long may be indicative of malicious activity on your hosts. This search leverages the Splunk Streaming ML DSP plugin to help identify command lines with lengths that are unusual for a given user. This detection is inspired on Unusually Long Command Line authored by Rico Valdez. + +- **Product**: UEBA for Security Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-10-06 + +
+ details + +#### Search +``` + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval cmd_line=ucast(map_get(input_event, "process"), "string", null), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null) +| where cmd_line!=null and dest_user_id!=null +| eval cmd_line_norm=replace(cast(cmd_line, "string"), /\s(--?\w+) +|(\/\w+)/, " ARG"), cmd_line_norm=replace(cmd_line_norm, /\w:\\[^\s]+/, "PATH"), cmd_line_norm=replace(cmd_line_norm, /\d+/, "N"), input=parse_double(len(coalesce(cmd_line_norm, ""))) +| select timestamp, process_name, dest_device_id, dest_user_id, cmd_line, input +| adaptive_threshold algorithm="quantile" entity="process_name" window=60480000 +| where label AND quantile>0.99 +| first_time_event input_columns=["dest_device_id", "cmd_line"] +| where first_time_dest_device_id_cmd_line +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); +``` +#### Associated Analytic Story + + +#### How To Implement +You must be ingesting sysmon endpoint data that monitors command lines. + +#### Required field + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +This detection may flag suspiciously long command lines when there is not sufficient evidence (samples) for a given process that this detection is tracking; or when there is high variability in the length of the command line for the tracked process. Also, some legitimate applications may use long command lines. Such is the case of Ansible, that encodes Powershell scripts using long base64. Attackers may use this technique to obfuscate their payloads. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Unusually Long Command Line +Command lines that are extremely long may be indicative of malicious activity on your hosts. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-12-08 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes by Processes.user Processes.dest Processes.process_name Processes.process +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval processlen=len(process) +| eventstats stdev(processlen) as stdev, avg(processlen) as avg by dest +| stats max(processlen) as maxlen, values(stdev) as stdevperhost, values(avg) as avgperhost by dest, user, process_name, process +| `unusually_long_command_line_filter` +|eval threshold = 3 +| where maxlen > ((threshold*stdevperhost) + avgperhost) +``` +#### Associated Analytic Story + +* Suspicious Command-Line Executions + +* Unusual Processes + +* Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns + +* Ransomware + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships, from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the process field in the Endpoint data model. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some legitimate applications start with long command lines. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +_version_: 5 +
+ +--- + +### Unusually Long Command Line - MLTK +Command lines that are extremely long may be indicative of malicious activity on your hosts. This search leverages the Machine Learning Toolkit (MLTK) to help identify command lines with lengths that are unusual for a given user. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2019-05-08 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes by Processes.user Processes.dest Processes.process_name Processes.process +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval processlen=len(process) +| search user!=unknown +| apply cmdline_pdfmodel threshold=0.01 +| rename "IsOutlier(processlen)" as isOutlier +| search isOutlier > 0 +| table firstTime lastTime user dest process_name process processlen count +| `unusually_long_command_line___mltk_filter` +``` +#### Associated Analytic Story + +* Suspicious Command-Line Executions + +* Unusual Processes + +* Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns + +* Ransomware + + +#### How To Implement +You must be ingesting endpoint data that monitors command lines and populates the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. In addition, MLTK version >= 4.2 must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of Command Line Length - MLTK" must be executed before this detection search, as it builds an ML model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment. + +#### Required field + + + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some legitimate applications use long command lines for installs or updates. You should review identified command lines for legitimacy. You may modify the first part of the search to omit legitimate command lines from consideration. If you are seeing more results than desired, you may consider changing the value of threshold in the search to a smaller value. You should also periodically re-run the support search to re-build the ML model on the latest data. You may get unexpected results if the user identified in the results is not present in the data used to build the associated model. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Unusually Long Content-Type Length +This search looks for unusually long strings in the Content-Type http header that the client sends the server. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-10-13 + +
+ details + +#### Search +``` +`stream_http` +| eval cs_content_type_length = len(cs_content_type) +| where cs_content_type_length > 100 +| table endtime src_ip dest_ip cs_content_type_length cs_content_type url +| `unusually_long_content_type_length_filter` +``` +#### Associated Analytic Story + +* Apache Struts Vulnerability + + +#### How To Implement +This particular search leverages data extracted from Stream:HTTP. You must configure the http stream using the Splunk Stream App on your Splunk Stream deployment server to extract the cs_content_type field. + +#### Required field + + + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +Very few legitimate Content-Type fields will have a length greater than 100 characters. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### WBAdmin Delete System Backups +This search looks for flags passed to wbadmin.exe (Windows Backup Administrator Tool) that delete backup files. This is typically used by ransomware to prevent recovery. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1490](https://attack.mitre.org/techniques/T1490/) +- **Last Updated**: 2021-01-22 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wbadmin.exe Processes.process="*delete*" AND (Processes.process="*catalog*" OR Processes.process="*systemstatebackup*") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `wbadmin_delete_system_backups_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + +* Ransomware + + +#### How To Implement +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. Tune based on parent process names. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Administrators may modify the boot configuration. + +#### Reference + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1490/T1490.md + +* https://thedfirreport.com/2020/10/08/ryuks-return/ + +* https://attack.mitre.org/techniques/T1490/ + +* https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/wbadmin + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### WMI Permanent Event Subscription +This search looks for the creation of WMI permanent event subscriptions. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2018-10-23 + +
+ details + +#### Search +``` +`wmi` EventCode=5861 Binding +| rex field=Message "Consumer =\s+(?[^; +|^$]+)" +| search consumer!="NTEventLogEventConsumer=\"SCM Event Log Consumer\"" +| stats count min(_time) as firstTime max(_time) as lastTime by ComputerName, consumer, Message +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename ComputerName as dest +| `wmi_permanent_event_subscription_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +To successfully implement this search, you must be ingesting the Windows WMI activity logs. This can be done by adding a stanza to inputs.conf on the system generating logs with a title of [WinEventLog://Microsoft-Windows-WMI-Activity/Operational]. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, administrators may use event subscriptions for legitimate purposes. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### WMI Permanent Event Subscription - Sysmon +This search looks for the creation of WMI permanent event subscriptions. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1546.003](https://attack.mitre.org/techniques/T1546.003/) +- **Last Updated**: 2020-12-08 + +
+ details + +#### Search +``` +`sysmon` EventCode=21 +| rename host as dest +| table _time, dest, user, Operation, EventType, Query, Consumer, Filter +| `wmi_permanent_event_subscription___sysmon_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +To successfully implement this search, you must be collecting Sysmon data using Sysmon version 6.1 or greater and have Sysmon configured to generate alerts for WMI activity. In addition, you must have at least version 6.0.4 of the Sysmon TA installed to properly parse the fields. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1546.003 | Windows Management Instrumentation Event Subscription | Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Although unlikely, administrators may use event subscriptions for legitimate purposes. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.003/atomic_red_team/windows-sysmon.log + + +_version_: 2 +
+ +--- + +### WMI Temporary Event Subscription +This search looks for the creation of WMI temporary event subscriptions. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/) +- **Last Updated**: 2018-10-23 + +
+ details + +#### Search +``` +`wmi` EventCode=5860 Temporary +| rex field=Message "NotificationQuery =\s+(?[^; +|^$]+)" +| search query!="SELECT * FROM Win32_ProcessStartTrace WHERE ProcessName = 'wsmprovhost.exe'" AND query!="SELECT * FROM __InstanceOperationEvent WHERE TargetInstance ISA 'AntiVirusProduct' OR TargetInstance ISA 'FirewallProduct' OR TargetInstance ISA 'AntiSpywareProduct'" +| stats count min(_time) as firstTime max(_time) as lastTime by ComputerName, query +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `wmi_temporary_event_subscription_filter` +``` +#### Associated Analytic Story + +* Suspicious WMI Use + + +#### How To Implement +To successfully implement this search, you must be ingesting the Windows WMI activity logs. This can be done by adding a stanza to inputs.conf on the system generating logs with a title of [WinEventLog://Microsoft-Windows-WMI-Activity/Operational]. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some software may create WMI temporary event subscriptions for various purposes. The included search contains an exception for two of these that occur by default on Windows 10 systems. You may need to modify the search to create exceptions for other legitimate events. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Web Fraud - Account Harvesting +This search is used to identify the creation of multiple user accounts using the same email domain name. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1136](https://attack.mitre.org/techniques/T1136/) +- **Last Updated**: 2018-10-08 + +
+ details + +#### Search +``` +`stream_http` http_content_type=text* uri="/magento2/customer/account/loginPost/" +| rex field=cookie "form_key=(?\w+)" +| rex field=form_data "login\[username\]=(?[^& +|^$]+)" +| search Username=* +| rex field=Username "@(?.*)" +| stats dc(Username) as UniqueUsernames list(Username) as src_user by email_domain +| where UniqueUsernames> 25 +| `web_fraud___account_harvesting_filter` +``` +#### Associated Analytic Story + +* Web Fraud Detection + + +#### How To Implement +We start with a dataset that provides visibility into the email address used for the account creation. In this example, we are narrowing our search down to the single web page that hosts the Magento2 e-commerce platform (via URI) used for account creation, the single http content-type to grab only the user's clicks, and the http field that provides the username (form_data), for performance reasons. After we have the username and email domain, we look for numerous account creations per email domain. Common data sources used for this detection are customized Apache logs or Splunk Stream. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136 | Create Account | Persistence | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosely written detections that simply detect anamolous behavior. This search will need to be customized to fit your environment—improving its fidelity by counting based on something much more specific, such as a device ID that may be present in your dataset. Consideration for whether the large number of registrations are occuring from a first-time seen domain may also be important. Extending the search window to look further back in time, or even calculating the average per hour/day for each email domain to look for an anomalous spikes, will improve this search. You can also use Shannon entropy or Levenshtein Distance (both courtesy of URL Toolbox) to consider the randomness or similarity of the email name or email domain, as the names are often machine-generated. + +#### Reference + +* https://splunkbase.splunk.com/app/2734/ + +* https://splunkbase.splunk.com/app/1809/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Web Fraud - Anomalous User Clickspeed +This search is used to examine web sessions to identify those where the clicks are occurring too quickly for a human or are occurring with a near-perfect cadence (high periodicity or low standard deviation), resembling a script driven session. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2018-10-08 + +
+ details + +#### Search +``` +`stream_http` http_content_type=text* +| rex field=cookie "form_key=(?\w+)" +| streamstats window=2 current=1 range(_time) as TimeDelta by session_id +| where TimeDelta>0 +|stats count stdev(TimeDelta) as ClickSpeedStdDev avg(TimeDelta) as ClickSpeedAvg by session_id +| where count>5 AND (ClickSpeedStdDev<.5 OR ClickSpeedAvg<.5) +| `web_fraud___anomalous_user_clickspeed_filter` +``` +#### Associated Analytic Story + +* Web Fraud Detection + + +#### How To Implement +Start with a dataset that allows you to see clickstream data for each user click on the website. That data must have a time stamp and must contain a reference to the session identifier being used by the website. This ties the clicks together into clickstreams. This value is usually found in the http cookie. With a bit of tuning, a version of this search could be used in high-volume scenarios, such as scraping, crawling, application DDOS, credit-card testing, account takeover, etc. Common data sources used for this detection are customized Apache logs, customized IIS, and Splunk Stream. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosly written detections that simply detect anamoluous behavior. + +#### Reference + +* https://en.wikipedia.org/wiki/Session_ID + +* https://en.wikipedia.org/wiki/Session_(computer_science) + +* https://en.wikipedia.org/wiki/HTTP_cookie + +* https://splunkbase.splunk.com/app/1809/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Web Fraud - Password Sharing Across Accounts +This search is used to identify user accounts that share a common password. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-10-08 + +
+ details + +#### Search +``` +`stream_http` http_content_type=text* uri=/magento2/customer/account/loginPost* +| rex field=form_data "login\[username\]=(?[^& +|^$]+)" +| rex field=form_data "login\[password\]=(?[^& +|^$]+)" +| stats dc(Username) as UniqueUsernames values(Username) as user list(src_ip) as src_ip by Password +|where UniqueUsernames>5 +| `web_fraud___password_sharing_across_accounts_filter` +``` +#### Associated Analytic Story + +* Web Fraud Detection + + +#### How To Implement +We need to start with a dataset that allows us to see the values of usernames and passwords that users are submitting to the website hosting the Magento2 e-commerce platform (commonly found in the HTTP form_data field). A tokenized or hashed value of a password is acceptable and certainly preferable to a clear-text password. Common data sources used for this detection are customized Apache logs, customized IIS, and Splunk Stream. + +#### Required field + + + + +#### Kill Chain Phase + + +#### Known False Positives +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosely written detections that simply detect anamoluous behavior. + +#### Reference + +* https://en.wikipedia.org/wiki/Session_ID + +* https://en.wikipedia.org/wiki/Session_(computer_science) + +* https://en.wikipedia.org/wiki/HTTP_cookie + +* https://splunkbase.splunk.com/app/1809/ + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Web Servers Executing Suspicious Processes +This search looks for suspicious processes on all systems labeled as web servers. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1082](https://attack.mitre.org/techniques/T1082/) +- **Last Updated**: 2019-04-01 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.dest_category="web_server" AND (Processes.process="*whoami*" OR Processes.process="*ping*" OR Processes.process="*iptables*" OR Processes.process="*wget*" OR Processes.process="*service*" OR Processes.process="*curl*") by Processes.process Processes.process_name, Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `web_servers_executing_suspicious_processes_filter` +``` +#### Associated Analytic Story + +* Apache Struts Vulnerability + + +#### How To Implement +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. In addition, web servers will need to be identified in the Assets and Identity Framework of Enterprise Security. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1082 | System Information Discovery | Discovery | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +Some of these processes may be used legitimately on web servers during maintenance or other administrative tasks. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Windows AdFind Exe +This search looks for the execution of `adfind.exe` with command-line arguments that it uses by default. Specifically the filter or search functions. It also considers the arguments necessary like objectcategory, see readme for more details: https://www.joeware.net/freetools/tools/adfind/usage.htm. This has been seen used before by Wizard Spider, FIN6 and actors whom also launched SUNBURST. AdFind.exe is usually used a recon tool to enumare a domain controller. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1018](https://attack.mitre.org/techniques/T1018/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process=*-f* OR Processes.process=*-b*) AND (Processes.process=*objectcategory* OR Processes.process=*-gcb* OR Processes.process=*-sc*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_adfind_exe_filter` +``` +#### Associated Analytic Story + +* Sunburst Malware + + +#### How To Implement +To successfully implement this search, you need to be ingesting logs with the process name, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1018 | Remote System Discovery | Discovery | + + +#### Kill Chain Phase + +* Exploitation + + +#### Known False Positives +administrators rarely use adfind, usually not used for legitimate reasons + +#### Reference + +* https://www.volexity.com/blog/2020/12/14/dark-halo-leverages-solarwinds-compromise-to-breach-organizations/ + +* https://www.fireeye.com/blog/threat-research/2019/01/a-nasty-trick-from-credential-theft-malware-to-business-disruption.html + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1018/atomic_red_team/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Windows DisableAntiSpyware Registry +The search looks for the Registry Key DisableAntiSpyware set to disable. This is consistent with Ryuk infections across a fleet of endpoints. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.001](https://attack.mitre.org/techniques/T1562.001/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Registry where Registry.registry_key_name="DisableAntiSpyware" AND Registry.registry_value_name="DWORD (0x00000000)" by Registry.dest Registry.user Registry.registry_path Registry.registry_value_name +| `drop_dm_object_name(Registry)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `windows_disableantispyware_registry_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + + +#### How To Implement +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.001 | Disable or Modify Tools | Defense Evasion | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +It is unusual to turn this feature on a Windows system since it is a default security control, although it is not rare for some policies to disable it. Although no false positives have been identified, use the provided filter macro to tune the search. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Windows Event Log Cleared +This search looks for Windows events that indicate one of the Windows event logs has been purged. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1070.001](https://attack.mitre.org/techniques/T1070.001/) +- **Last Updated**: 2020-07-06 + +
+ details + +#### Search +``` +(`wineventlog_security` (EventCode=1102 OR EventCode=1100)) OR (`wineventlog_system` EventCode=104) +| stats count min(_time) as firstTime max(_time) as lastTime by EventCode dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_event_log_cleared_filter` +``` +#### Associated Analytic Story + +* Windows Log Manipulation + +* Ransomware + + +#### How To Implement +To successfully implement this search, you need to be ingesting Windows event logs from your hosts. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070.001 | Clear Windows Event Logs | Defense Evasion | + + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Known False Positives +It is possible that these logs may be legitimately cleared by Administrators. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-system.log + + +_version_: 4 +
+ +--- + +### Windows Security Account Manager Stopped +The search looks for a Windows Security Account Manager (SAM) was stopped via command-line. This is consistent with Ryuk infections across a fleet of endpoints. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1489](https://attack.mitre.org/techniques/T1489/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes WHERE ("Processes.process_name"="net*.exe" "Processes.process"="*stop \"samss\"*") BY "Processes.dest", "Processes.user", "Processes.process" +| `drop_dm_object_name(Processes)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `windows_security_account_manager_stopped_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + + +#### How To Implement +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1489 | Service Stop | Impact | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +SAM is a critical windows service, stopping it would cause major issues on an endpoint this makes false positive rare. AlthoughNo false positives have been identified. + +#### Reference + + +#### Test Dataset + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/ryuk/windows-sysmon.log + + +_version_: 1 +
+ +--- + +### Windows connhost exe started forcefully +The search looks for the Console Window Host process (connhost.exe) executed using the force flag -ForceV1. This is not regular behavior in the Windows OS and is often seen executed by the Ryuk Ransomware. DEPRECATED This event is actually seen in the windows 10 client of attack_range_local. After further testing we realized this is not specific to Ryuk. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1059.003](https://attack.mitre.org/techniques/T1059.003/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes WHERE Processes.process="*C:\\Windows\\system32\\conhost.exe* 0xffffffff *-ForceV1*" by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_connhost_exe_started_forcefully_filter` +``` +#### Associated Analytic Story + +* Ryuk Ransomware + + +#### How To Implement +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | + + +#### Kill Chain Phase + +* Delivery + + +#### Known False Positives +This process should not be ran forcefully, we have not see any false positives for this detection + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### Windows hosts file modification +The search looks for modifications to the hosts file on all Windows endpoints across your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-11-02 + +
+ details + +#### Search +``` + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem by Filesystem.file_name Filesystem.file_path Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| search Filesystem.file_name=hosts AND Filesystem.file_path=*Windows\\System32\\* +| `drop_dm_object_name(Filesystem)` +| `windows_hosts_file_modification_filter` +``` +#### Associated Analytic Story + +* Host Redirection + + +#### How To Implement +To successfully implement this search, you must be ingesting data that records the file-system activity from your hosts to populate the Endpoint.Filesystem data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or by other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +#### Required field + + + + +#### Kill Chain Phase + +* Command and Control + + +#### Known False Positives +There may be legitimate reasons for system administrators to add entries to this file. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### aws detect attach to role policy +This search provides detection of an user attaching itself to a different role trust policy. This can be used for lateral movement and escalation of privileges. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-07-27 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` attach policy +| spath requestParameters.policyArn +| table sourceIPAddress user_access_key userIdentity.arn userIdentity.sessionContext.sessionIssuer.arn eventName errorCode errorMessage status action requestParameters.policyArn userIdentity.sessionContext.attributes.mfaAuthenticated userIdentity.sessionContext.attributes.creationDate +| `aws_detect_attach_to_role_policy_filter` +``` +#### Associated Analytic Story + +* AWS Cross Account Activity + + +#### How To Implement +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Attach to policy can create a lot of noise. This search can be adjusted to provide specific values to identify cases of abuse (i.e status=failure). The search can provide context for common users attaching themselves to higher privilege policies or even newly created policies. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### aws detect permanent key creation +This search provides detection of accounts creating permanent keys. Permanent keys are not created by default and they are only needed for programmatic calls. Creation of Permanent key is an important event to monitor. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-07-27 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` CreateAccessKey +| spath eventName +| search eventName=CreateAccessKey "userIdentity.type"=IAMUser +| table sourceIPAddress userName userIdentity.type userAgent action status responseElements.accessKey.createDate responseElements.accessKey.status responseElements.accessKey.accessKeyId +|`aws_detect_permanent_key_creation_filter` +``` +#### Associated Analytic Story + +* AWS Cross Account Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Not all permanent key creations are malicious. If there is a policy of rotating keys this search can be adjusted to provide better context. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### aws detect role creation +This search provides detection of role creation by IAM users. Role creation is an event by itself if user is creating a new role with trust policies different than the available in AWS and it can be used for lateral movement and escalation of privileges. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-07-27 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` event_name=CreateRole action=created userIdentity.type=AssumedRole requestParameters.description=Allows* +| table sourceIPAddress userIdentity.principalId userIdentity.arn action event_name awsRegion http_user_agent mfa_auth msg requestParameters.roleName requestParameters.description responseElements.role.arn responseElements.role.createDate +| `aws_detect_role_creation_filter` +``` +#### Associated Analytic Story + +* AWS Cross Account Activity + + +#### How To Implement +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +CreateRole is not very common in common users. This search can be adjusted to provide specific values to identify cases of abuse. In general AWS provides plenty of trust policies that fit most use cases. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### aws detect sts assume role abuse +This search provides detection of suspicious use of sts:AssumeRole. These tokens can be created on the go and used by attackers to move laterally and escalate privileges. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-07-27 + +
+ details + +#### Search +``` +`cloudtrail` user_type=AssumedRole userIdentity.sessionContext.sessionIssuer.type=Role +| table sourceIPAddress userIdentity.arn user_agent user_access_key status action requestParameters.roleName responseElements.role.roleName responseElements.role.createDate +| `aws_detect_sts_assume_role_abuse_filter` +``` +#### Associated Analytic Story + +* AWS Cross Account Activity + + +#### How To Implement +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sts:AssumeRole can be very noisy as it is a standard mechanism to provide cross account and cross resources access. This search can be adjusted to provide specific values to identify cases of abuse. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### aws detect sts get session token abuse +This search provides detection of suspicious use of sts:GetSessionToken. These tokens can be created on the go and used by attackers to move laterally and escalate privileges. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1550](https://attack.mitre.org/techniques/T1550/) +- **Last Updated**: 2020-07-27 + +
+ details + +#### Search +``` +`aws_cloudwatchlogs_eks` ASIA userIdentity.type=IAMUser +| spath eventName +| search eventName=GetSessionToken +| table sourceIPAddress eventTime userIdentity.arn userName userAgent user_type status region +| `aws_detect_sts_get_session_token_abuse_filter` +``` +#### Associated Analytic Story + +* AWS Cross Account Activity + + +#### How To Implement +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1550 | Use Alternate Authentication Material | Defense Evasion, Lateral Movement | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +Sts:GetSessionToken can be very noisy as in certain environments numerous calls of this type can be executed. This search can be adjusted to provide specific values to identify cases of abuse. In specific environments the use of field requestParameters.serialNumber will need to be used. + +#### Reference + + +#### Test Dataset + + +_version_: 1 +
+ +--- + +### gcp detect oauth token abuse +This search provides detection of possible GCP Oauth token abuse. GCP Oauth token without time limit can be exfiltrated and reused for keeping access sessions alive without further control of authentication, allowing attackers to access and move laterally. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-09-01 + +
+ details + +#### Search +``` +`google_gcp_pubsub_message` type.googleapis.com/google.cloud.audit.AuditLog +|table protoPayload.@type protoPayload.status.details{}.@type protoPayload.status.details{}.violations{}.callerIp protoPayload.status.details{}.violations{}.type protoPayload.status.message +| `gcp_detect_oauth_token_abuse_filter` +``` +#### Associated Analytic Story + +* GCP Cross Account Activity + + +#### How To Implement +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +#### Required field + + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + + +#### Kill Chain Phase + +* Lateral Movement + + +#### Known False Positives +GCP Oauth token abuse detection will only work if there are access policies in place along with audit logs. + +#### Reference + +* https://www.netskope.com/blog/gcp-oauth-token-hijacking-in-google-cloud-part-1 + +* https://www.netskope.com/blog/gcp-oauth-token-hijacking-in-google-cloud-part-2 + + +#### Test Dataset + + +_version_: 1 +
+ +--- diff --git a/docs/detections.wiki b/docs/detections.wiki new file mode 100644 index 0000000000..b1cdfa73be --- /dev/null +++ b/docs/detections.wiki @@ -0,0 +1,25200 @@ +=Splunk Security Content Detections = + +---- +All the detections shipped to different Splunk products. Below is a breakdown by kind. + +==Application== + + +===Detect new login attempts to routers=== +The search queries the authentication logs for assets that are categorized as routers in the ES Assets and Identity Framework, to identify connections that have not been seen before in the last 30 days. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': +* '''Last Updated''': 2017-09-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count earliest(_time) as earliest latest(_time) as latest from datamodel=Authentication where Authentication.dest_category=router by Authentication.dest Authentication.user +| eval isOutlier=if(earliest >= relative_time(now(), "-30d@d"), 1, 0) +| where isOutlier=1 +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `drop_dm_object_name("Authentication")` +| `detect_new_login_attempts_to_routers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +To successfully implement this search, you must ensure the network router devices are categorized as "router" in the Assets and identity table. You must also populate the Authentication data model with logs related to users authenticating to routing infrastructure. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legitimate router connections may appear as new connections + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Email attachments with lots of spaces=== +Attackers often use spaces as a means to obfuscate an attachment's file extension. This search looks for messages with email attachments that have many spaces within the file names. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email +* '''ATT&CK''': +* '''Last Updated''': 2017-09-19 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(All_Email.recipient) as recipient_address min(_time) as firstTime max(_time) as lastTime from datamodel=Email where All_Email.file_name="*" by All_Email.src_user, All_Email.file_name All_Email.message_id +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Email")` +| eval space_ratio = (mvcount(split(file_name," "))-1)/len(file_name) +| search space_ratio >= 0.1 +| rex field=recipient_address "(?.*)@" +| `email_attachments_with_lots_of_spaces_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Emails|Suspicious Emails]] + + +====How To Implement==== +You need to ingest data from emails. Specifically, the sender's address and the file names of any attachments must be mapped to the Email data model. The threshold ratio is set to 10%, but this value can be configured to suit each environment. \ + **Splunk Phantom Playbook Integration**\ +If Splunk Phantom is also configured in your environment, a playbook called "Suspicious Email Attachment Investigate and Delete" can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/` and add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search. The notable event will be sent to Phantom and the playbook will gather further information about the file attachment and its network behaviors. If Phantom finds malicious behavior and an analyst approves of the results, the email will be deleted from the user's inbox. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +None at this time + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Email files written outside of the outlook directory=== +The search looks at the change-analysis data model and detects email files created outside the normal Outlook directory. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.001/ T1114.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Filesystem where (Filesystem.file_name=*.pst OR Filesystem.file_name=*.ost) Filesystem.file_path != "C:\\Users\\*\\My Documents\\Outlook Files\\*" Filesystem.file_path!="C:\\Users\\*\\AppData\\Local\\Microsoft\\Outlook*" by Filesystem.action Filesystem.process_id Filesystem.file_name Filesystem.dest +| `drop_dm_object_name("Filesystem")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `email_files_written_outside_of_the_outlook_directory_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Collection_and_Staging|Collection and Staging]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records the file-system activity from your hosts to populate the Endpoint.Filesystem data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or by other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.001 +| Local Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators and users sometimes prefer backing up their email data by moving the email files into a different folder. These attempts will be detected by the search. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Email servers sending high volume traffic to hosts=== +This search looks for an increase of data transfers from your email server to your clients. This could be indicative of a malicious actor collecting data using your email server. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.002/ T1114.002] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` sum(All_Traffic.bytes_out) as bytes_out from datamodel=Network_Traffic where All_Traffic.src_category=email_server by All_Traffic.dest_ip _time span=1d +| `drop_dm_object_name("All_Traffic")` +| eventstats avg(bytes_out) as avg_bytes_out stdev(bytes_out) as stdev_bytes_out +| eventstats count as num_data_samples avg(eval(if(_time < relative_time(now(), "@d"), bytes_out, null))) as per_source_avg_bytes_out stdev(eval(if(_time < relative_time(now(), "@d"), bytes_out, null))) as per_source_stdev_bytes_out by dest_ip +| eval minimum_data_samples = 4, deviation_threshold = 3 +| where num_data_samples >= minimum_data_samples AND bytes_out > (avg_bytes_out + (deviation_threshold * stdev_bytes_out)) AND bytes_out > (per_source_avg_bytes_out + (deviation_threshold * per_source_stdev_bytes_out)) AND _time >= relative_time(now(), "@d") +| eval num_standard_deviations_away_from_server_average = round(abs(bytes_out - avg_bytes_out) / stdev_bytes_out, 2), num_standard_deviations_away_from_client_average = round(abs(bytes_out - per_source_avg_bytes_out) / per_source_stdev_bytes_out, 2) +| table dest_ip, _time, bytes_out, avg_bytes_out, per_source_avg_bytes_out, num_standard_deviations_away_from_server_average, num_standard_deviations_away_from_client_average +| `email_servers_sending_high_volume_traffic_to_hosts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Collection_and_Staging|Collection and Staging]] + + +====How To Implement==== +This search requires you to be ingesting your network traffic and populating the Network_Traffic data model. Your email servers must be categorized as "email_server" for the search to work, as well. You may need to adjust the deviation_threshold and minimum_data_samples values based on the network traffic in your environment. The "deviation_threshold" field is a multiplying factor to control how much variation you're willing to tolerate. The "minimum_data_samples" field is the minimum number of connections of data samples required for the statistic to be valid. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.002 +| Remote Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The false-positive rate will vary based on how you set the deviation_threshold and data_samples values. Our recommendation is to adjust these values based on your network traffic to and from your email servers. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Monitor email for brand abuse=== +This search looks for emails claiming to be sent from a domain similar to one that you want to have monitored for abuse. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email +* '''ATT&CK''': +* '''Last Updated''': 2018-01-05 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(All_Email.recipient) as recipients, min(_time) as firstTime, max(_time) as lastTime from datamodel=Email by All_Email.src_user, All_Email.message_id +| `drop_dm_object_name("All_Email")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval temp=split(src_user, "@") +| eval email_domain=mvindex(temp, 1) +| lookup update=true brandMonitoring_lookup domain as email_domain OUTPUT domain_abuse +| search domain_abuse=true +| table message_id, src_user, email_domain, recipients, firstTime, lastTime +| `monitor_email_for_brand_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Brand_Monitoring|Brand Monitoring]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Emails|Suspicious Emails]] + + +====How To Implement==== +You need to ingest email header data. Specifically the sender's address (src_user) must be populated. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +None at this time + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Multiple okta users with invalid credentials from the same ip=== +This search detects Okta login failures due to bad credentials for multiple users originating from the same ip address. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.001/ T1078.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`okta` outcome.reason=INVALID_CREDENTIALS +| rename client.geographicalContext.country as country, client.geographicalContext.state as state, client.geographicalContext.city as city +| stats min(_time) as firstTime max(_time) as lastTime dc(user) as distinct_users values(user) as users by src_ip, displayMessage, outcome.reason, country, state, city +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search distinct_users > 5 +| `multiple_okta_users_with_invalid_credentials_from_the_same_ip_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Okta_Activity|Suspicious Okta Activity]] + + +====How To Implement==== +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.001 +| Default Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +A single public IP address servicing multiple legitmate users may trigger this search. In addition, the threshold of 5 distinct users may be too low for your needs. You may modify the included filter macro `multiple_okta_users_with_invalid_credentials_from_the_same_ip_filter` to raise the threshold or except specific IP adresses from triggering this search. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===No windows updates in a time frame=== +This search looks for Windows endpoints that have not generated an event indicating a successful Windows update in the last 60 days. Windows updates are typically released monthly and applied shortly thereafter. An endpoint that has not successfully applied an update in this time frame indicates the endpoint is not regularly being patched for some reason. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Updates +* '''ATT&CK''': +* '''Last Updated''': 2017-09-15 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` max(_time) as lastTime from datamodel=Updates where Updates.status=Installed Updates.vendor_product="Microsoft Windows" by Updates.dest Updates.status Updates.vendor_product +| rename Updates.dest as Host +| rename Updates.status as "Update Status" +| rename Updates.vendor_product as Product +| eval isOutlier=if(lastTime <= relative_time(now(), "-60d@d"), 1, 0) +| `security_content_ctime(lastTime)` +| search isOutlier=1 +| rename lastTime as "Last Update Time", +| table Host, "Update Status", Product, "Last Update Time" +| `no_windows_updates_in_a_time_frame_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Monitor_for_Updates|Monitor for Updates]] + + +====How To Implement==== +To successfully implement this search, it requires that the 'Update' data model is being populated. This can be accomplished by ingesting Windows events or the Windows Update log via a universal forwarder on the Windows endpoints you wish to monitor. The Windows add-on should be also be installed and configured to properly parse Windows events in Splunk. There may be other data sources which can populate this data model, including vulnerability management systems. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Okta account lockout events=== +Detect Okta user lockout events + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.001/ T1078.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`okta` displayMessage="Max sign in attempts exceeded" +| rename client.geographicalContext.country as country, client.geographicalContext.state as state, client.geographicalContext.city as city +| table _time, user, country, state, city, src_ip +| `okta_account_lockout_events_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Okta_Activity|Suspicious Okta Activity]] + + +====How To Implement==== +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.001 +| Default Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +None. Account lockouts should be followed up on to determine if the actual user was the one who caused the lockout, or if it was an unauthorized actor. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Okta failed sso attempts=== +Detect failed Okta SSO events + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.001/ T1078.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`okta` displayMessage="User attempted unauthorized access to app" +| stats min(_time) as firstTime max(_time) as lastTime values(app) as Apps count by user, result ,displayMessage, src_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `okta_failed_sso_attempts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Okta_Activity|Suspicious Okta Activity]] + + +====How To Implement==== +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.001 +| Default Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +There may be a faulty config preventing legitmate users from accessing apps they should have access to. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Okta user logins from multiple cities=== +This search detects logins from the same user from different cities in a 24 hour period. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.001/ T1078.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`okta` displayMessage="User login to Okta" client.geographicalContext.city!=null +| stats min(_time) as firstTime max(_time) as lastTime dc(client.geographicalContext.city) as locations values(client.geographicalContext.city) as cities values(client.geographicalContext.state) as states by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `okta_user_logins_from_multiple_cities_filter` +| search locations > 1 + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Okta_Activity|Suspicious Okta Activity]] + + +====How To Implement==== +This search is specific to Okta and requires Okta logs are being ingested in your Splunk deployment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.001 +| Default Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Users in your enviornment may legitmately be travelling and loggin in from different locations. This search is useful for those users that should *not* be travelling for some reason, such as the COVID-19 pandemic. The search also relies on the geographical information being populated in the Okta logs. It is also possible that a connection from another region may be attributed to a login from a remote VPN endpoint. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Phishing email detection by machine learning method - ssa=== +Malicious mails can conduct phishing that induces readers to open attachment, click links or trigger third party service. This detect uses Natural Language Processing (NLP) approach to analyze an email message's content (Sender, Subject and Body) and judge whether it is a phishing email. The detection adopts a deep learning (neural network) model that employs character level embeddings plus LSTM layers to perform classification. The model is pre-trained and then published as ONNX format. Current sample model is trained using the dataset published at https://github.com/splunk/attack_data/tree/master/datasets/T1566_Phishing_Email/splunk_train.json User are expected to re-train the model by combining with their own training data for better accuracy using the provided model file (SMLE notebook). DSP pipeline then processes the email message and passes it as an event to Apply ML Models function, which returns the probability of a phishing email. Current implementation assumes the email is fed to DSP in JSON format contains at least email's sender, subject and its message body, including reply content, if any. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566/ T1566] +* '''Last Updated''': 2020-08-25 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval eventLine=concat(ucast(map_get(input_event, "From"), "string", " "), " ", ucast(map_get(input_event, "Subject"), "string", " "), " ", ucast(map_get(input_event, "Content"), "string", " "), " "), _time=map_get(input_event, "_time") +| where eventLine IS NOT NULL +| eval mapC={" ": 32, "!": 33, "\"": 34, "#": 35, "$": 36, "%": 37, "&": 38, "`": 39, "(": 40, ")": 41, "*": 42, "+": 43, ",": 44, "-": 45, ".": 46, "/": 47, "0": 48, "1": 49, "2": 50, "3": 51, "4": 52, "5": 53, "6": 54, "7": 55, "8": 56, "9": 57, ":": 58, ";": 59, "<": 60, "=": 61, ">": 62, "?": 63, "@": 64, "A": 65, "B": 66, "C": 67, "D": 68, "E": 69, "F": 70, "G": 71, "H": 72, "I": 73, "J": 74, "K": 75, "L": 76, "M": 77, "N": 78, "O": 79, "P": 80, "Q": 81, "R": 82, "S": 83, "T": 84, "U": 85, "V": 86, "W": 87, "X": 88, "Y": 89, "Z": 90, "[": 91, "\\": 92, "]": 93, "^": 94, "_": 95, "`": 96, "a": 97, "b": 98, "c": 99, "d": 100, "e": 101, "f": 102, "g": 103, "h": 104, "i": 105, "j": 106, "k": 107, "l": 108, "m": 109, "n": 110, "o": 111, "p": 112, "q": 113, "r": 114, "s": 115, "t": 116, "u": 117, "v": 118, "w": 119, "x": 120, "y": 121, "z": 122, "{": 123, " +|": 124, "}": 125, "~": 126}, ml_in = for_each(iterator(mvrange(1,129), "i"), cast(map_get(mapC, substr(eventLine, i, 1)), "float") ) +| apply_model connection_id="YOUR_S3_ONNX_CONNECTOR_ID" name="phishing_email_v8" path="s3://smle-experiments/models/phishing_email" +| eval probability = mvindex(ml_out, 0) +| where probability > 0.5 +| eval start_time=_time, end_time=_time, entities="TBD", body="TBD" +| select probability, body, entities, start_time, end_time +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +Events are fed to DSP contains at least email's sender, subject and its message body. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566 +| Phishing +| Initial Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Because of imbalance of anomaly data in training, the model will less likely report false positive. Instead, the model is more prone to false negative. Current best recall score is ~85% + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Spectre and meltdown vulnerable systems=== +The search is used to detect systems that are still vulnerable to the Spectre and Meltdown vulnerabilities. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Vulnerabilities +* '''ATT&CK''': +* '''Last Updated''': 2017-01-07 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime from datamodel=Vulnerabilities where Vulnerabilities.cve ="CVE-2017-5753" OR Vulnerabilities.cve ="CVE-2017-5715" OR Vulnerabilities.cve ="CVE-2017-5754" by Vulnerabilities.dest +| `drop_dm_object_name(Vulnerabilities)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `spectre_and_meltdown_vulnerable_systems_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Spectre_And_Meltdown_Vulnerabilities|Spectre And Meltdown Vulnerabilities]] + + +====How To Implement==== +The search requires that you are ingesting your vulnerability-scanner data and that it reports the CVE of the vulnerability identified. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that your vulnerability scanner is not detecting that the patches have been applied. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Suspicious email - uba anomaly=== +This detection looks for emails that are suspicious because of their sender, domain rareness, or behavior differences. This is an anomaly generated by Splunk User Behavior Analytics (UBA). + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': UEBA +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566/ T1566] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +|tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(All_UEBA_Events.category) as category from datamodel=UEBA where nodename=All_UEBA_Events.UEBA_Anomalies All_UEBA_Events.UEBA_Anomalies.uba_model = "SuspiciousEmailDetectionModel" by All_UEBA_Events.description All_UEBA_Events.severity All_UEBA_Events.user All_UEBA_Events.uba_event_type All_UEBA_Events.link All_UEBA_Events.signature All_UEBA_Events.url All_UEBA_Events.UEBA_Anomalies.uba_model +| `drop_dm_object_name(All_UEBA_Events)` +| `drop_dm_object_name(UEBA_Anomalies)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_email___uba_anomaly_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Emails|Suspicious Emails]] + + +====How To Implement==== +You must be ingesting data from email logs and have Splunk integrated with UBA. This anomaly is raised by a UBA detection model called "SuspiciousEmailDetectionModel." Ensure that this model is enabled on your UBA instance. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566 +| Phishing +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +This detection model will alert on any sender domain that is seen for the first time. This could be a potential false positive. The next step is to investigate and add the URL to an allow list if you determine that it is a legitimate sender. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Suspicious email attachment extensions=== +This search looks for emails that have attachments with suspicious file extensions. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.001/ T1566.001] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Email where All_Email.file_name="*" by All_Email.src_user, All_Email.file_name All_Email.message_id +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Email")` +| `suspicious_email_attachments` +| `suspicious_email_attachment_extensions_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Emails|Suspicious Emails]] + + +====How To Implement==== +You need to ingest data from emails. Specifically, the sender's address and the file names of any attachments must be mapped to the Email data model. \ + **Splunk Phantom Playbook Integration**\ +If Splunk Phantom is also configured in your environment, a Playbook called "Suspicious Email Attachment Investigate and Delete" can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, and add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search. The notable event will be sent to Phantom and the playbook will gather further information about the file attachment and its network behaviors. If Phantom finds malicious behavior and an analyst approves of the results, the email will be deleted from the user's inbox. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.001 +| Spearphishing Attachment +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Suspicious java classes=== +This search looks for suspicious Java classes that are often used to exploit remote command execution in common Java frameworks, such as Apache Struts. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-12-06 + +
+
+ +====Search==== +`stream_http` http_method=POST http_content_length>1 +| regex form_data="(?i)java\.lang\.(?:runtime +|processbuilder)" +| rename src_ip as src +| stats count earliest(_time) as firstTime, latest(_time) as lastTime, values(url) as uri, values(status) as status, values(http_user_agent) as http_user_agent by src, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_java_classes_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Apache_Struts_Vulnerability|Apache Struts Vulnerability]] + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest data from your web-traffic appliances that serve or sit in the path of your Struts application servers. This can be accomplished by indexing data from a web proxy, or by using network traffic-analysis tools, such as Splunk Stream or Bro. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +There are no known false positives. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Web servers executing suspicious processes=== +This search looks for suspicious processes on all systems labeled as web servers. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1082/ T1082] +* '''Last Updated''': 2019-04-01 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.dest_category="web_server" AND (Processes.process="*whoami*" OR Processes.process="*ping*" OR Processes.process="*iptables*" OR Processes.process="*wget*" OR Processes.process="*service*" OR Processes.process="*curl*") by Processes.process Processes.process_name, Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `web_servers_executing_suspicious_processes_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Apache_Struts_Vulnerability|Apache Struts Vulnerability]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. In addition, web servers will need to be identified in the Assets and Identity Framework of Enterprise Security. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1082 +| System Information Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some of these processes may be used legitimately on web servers during maintenance or other administrative tasks. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + + + +==Cloud== + + +===Aws cross account activity from previously unseen account=== +This search looks for AssumeRole events where an IAM role in a different account is requested for the first time. This search is deprecated and have been translated to use the latest Authentication Datamodel. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': +* '''Last Updated''': 2020-05-28 + +
+
+ +====Search==== + +| tstats min(_time) as firstTime max(_time) as lastTime from datamodel=Authentication where Authentication.signature=AssumeRole by Authentication.vendor_account Authentication.user Authentication.src Authentication.user_role +| `drop_dm_object_name(Authentication)` +| rex field=user_role "arn:aws:sts:*:(?.*):" +| where vendor_account != dest_account +| rename vendor_account as requestingAccountId dest_account as requestedAccountId +| lookup previously_seen_aws_cross_account_activity requestingAccountId, requestedAccountId, OUTPUTNEW firstTime +| eval status = if(firstTime > relative_time(now(), "-24h@h"),"New Cross Account Activity","Previously Seen") +| where status = "New Cross Account Activity" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_cross_account_activity_from_previously_unseen_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Authentication_Activities|Suspicious Cloud Authentication Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen AWS Cross Account Activity - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen AWS Cross Account Activity - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `aws_cross_account_activity_from_previously_unseen_account_filter` macro. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Using multiple AWS accounts and roles is perfectly valid behavior. It's suspicious when an account requests privileges of an account it hasn't before. You should validate with the account owner that this is a legitimate request. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Aws detect users creating keys with encrypt policy without mfa=== +This search provides detection of KMS keys which action kms:Encrypt is accessible for everyone (also outside of your organization). This is an identicator that your account is compromised and the attacker uses the encryption key to compromise another company. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2021-01-11 + +
+
+ +====Search==== +`cloudtrail` eventName=CreateKey OR eventName=PutKeyPolicy +| spath input=requestParameters.policy output=key_policy_statements path=Statement{} +| mvexpand key_policy_statements +| spath input=key_policy_statements output=key_policy_action_1 path=Action +| spath input=key_policy_statements output=key_policy_action_2 path=Action{} +| eval key_policy_action=mvappend(key_policy_action_1, key_policy_action_2) +| spath input=key_policy_statements output=key_policy_principal path=Principal.AWS +| search key_policy_action="kms:Encrypt" AND key_policy_principal="*" +| stats count min(_time) as firstTime max(_time) as lastTime by eventName eventSource eventID awsRegion userIdentity.principalId +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_detect_users_creating_keys_with_encrypt_policy_without_mfa_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ransomware_Cloud|Ransomware Cloud]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +unknown + +====Reference==== + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/aws_kms_key/aws_cloudtrail_events.json + + +''version'': 1 +
+
+ +---- + +===Aws detect users with kms keys performing encryption s3=== +This search provides detection of users with KMS keys performing encryption specifically against S3 buckets. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2021-01-11 + +
+
+ +====Search==== +`cloudtrail` eventName=CopyObject requestParameters.x-amz-server-side-encryption="aws:kms" +| rename requestParameters.bucketName AS bucket_name, requestParameters.x-amz-copy-source AS src_file, requestParameters.key AS dest_file +| stats count min(_time) as firstTime max(_time) as lastTime values(src_file) AS src_file values(dest_file) AS dest_file values(userAgent) AS userAgent values(region) AS region values(src) AS src by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_detect_users_with_kms_keys_performing_encryption_s3_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ransomware_Cloud|Ransomware Cloud]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +bucket with S3 encryption + +====Reference==== + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/s3_file_encryption/aws_cloudtrail_events.json + + +''version'': 1 +
+
+ +---- + +===Aws eks kubernetes cluster sensitive object access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmaps or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` objectRef.resource=secrets OR configmaps sourceIPs{}!=::1 sourceIPs{}!=127.0.0.1 +|table sourceIPs{} user.username user.groups{} objectRef.resource objectRef.namespace objectRef.name annotations.authorization.k8s.io/reason +|dedup user.username user.groups{} +|`aws_eks_kubernetes_cluster_sensitive_object_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install Splunk Add-on for Amazon Web Services and Splunk App for AWS. This search works with cloudwatch logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws network access control list created with all open ports=== +The search looks for CloudTrail events to detect if any network ACLs were created with all the ports open to a specified CIDR. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.007/ T1562.007] +* '''Last Updated''': 2021-01-11 + +
+
+ +====Search==== +`cloudtrail` eventName=CreateNetworkAclEntry OR eventName=ReplaceNetworkAclEntry requestParameters.ruleAction=allow requestParameters.egress=false requestParameters.aclProtocol=-1 +| append [search `cloudtrail` eventName=CreateNetworkAclEntry OR eventName=ReplaceNetworkAclEntry requestParameters.ruleAction=allow requestParameters.egress=false requestParameters.aclProtocol!=-1 +| eval port_range='requestParameters.portRange.to' - 'requestParameters.portRange.from' +| where port_range>1024] +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId eventName requestParameters.ruleAction requestParameters.egress requestParameters.aclProtocol requestParameters.portRange.to requestParameters.portRange.from src userAgent requestParameters.cidrBlock +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_network_access_control_list_created_with_all_open_ports_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Network_ACL_Activity|AWS Network ACL Activity]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS, version 4.4.0 or later, and configure your CloudTrail inputs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that an admin has created this ACL with all ports open for some legitimate purpose however, this should be scoped and not allowed in production environment. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/aws_create_acl/aws_cloudtrail_events.json + + +''version'': 2 +
+
+ +---- + +===Aws network access control list deleted=== +Enforcing network-access controls is one of the defensive mechanisms used by cloud administrators to restrict access to a cloud instance. After the attacker has gained control of the AWS console by compromising an admin account, they can delete a network ACL and gain access to the instance from anywhere. This search will query the CloudTrail logs to detect users deleting network ACLs. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.007/ T1562.007] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`cloudtrail` eventName=DeleteNetworkAclEntry requestParameters.egress=false +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId eventName requestParameters.egress src userAgent +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `aws_network_access_control_list_deleted_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Network_ACL_Activity|AWS Network ACL Activity]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that a user has legitimately deleted a network ACL. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/aws_delete_acl/aws_cloudtrail_events.json + + +''version'': 2 +
+
+ +---- + +===Aws saml access by provider user and principal=== +This search provides specific SAML access from specific Service Provider, user and targeted principal at AWS. This search provides specific information to detect abnormal access or potential credential hijack or forgery, specially in federated environments using SAML protocol inside the perimeter or cloud provider. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`cloudtrail` eventName=Assumerolewithsaml +| stats count min(_time) as firstTime max(_time) as lastTime by requestParameters.principalArn requestParameters.roleArn requestParameters.roleSessionName recipientAccountId responseElements.issuer sourceIPAddress userAgent +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_saml_access_by_provider_user_and_principal_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Attacks using a Golden SAML or SAML assertion hijacks or forgeries are very difficult to detect as accessing cloud providers with these assertions looks exactly like normal access, however things such as source IP sourceIPAddress user, and principal targeted at receiving cloud provider along with endpoint credential access and abuse detection searches can provide the necessary context to detect these attacks. + +====Reference==== + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078/assume_role_with_saml/assume_role_with_saml.json + + +''version'': 1 +
+
+ +---- + +===Aws saml update identity provider=== +This search provides detection of updates to SAML provider in AWS. Updates to SAML provider need to be monitored closely as they may indicate possible perimeter compromise of federated credentials, or backdoor access from another cloud provider set by attacker. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`cloudtrail` eventName=UpdateSAMLProvider +| stats count min(_time) as firstTime max(_time) as lastTime by eventType eventName requestParameters.sAMLProviderArn userIdentity.sessionContext.sessionIssuer.arn sourceIPAddress userIdentity.accessKeyId userIdentity.principalId +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`aws_saml_update_identity_provider_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Updating a SAML provider or creating a new one may not necessarily be malicious however it needs to be closely monitored. + +====Reference==== + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078/update_saml_provider/update_saml_provider.json + + +''version'': 1 +
+
+ +---- + +===Abnormally high number of cloud infrastructure api calls=== +This search will detect a spike in the number of API calls made to your cloud infrastructure environment by a user. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-09-07 + +
+
+ +====Search==== + +| tstats count as api_calls values(All_Changes.command) as command from datamodel=Change where All_Changes.user!=unknown All_Changes.status=success by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join user HourOfDay isWeekend [ summary cloud_excessive_api_calls_v1] +| where cardinality >=16 +| apply cloud_excessive_api_calls_v1 threshold=0.005 +| rename "IsOutlier(api_calls)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| where api_calls > expected_upper_threshold +| eval distance_from_threshold = api_calls - expected_upper_threshold +| table _time, user, command, api_calls, expected_upper_threshold, distance_from_threshold +| `abnormally_high_number_of_cloud_infrastructure_api_calls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_User_Activities|Suspicious Cloud User Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Infrastructure API Calls Per User` to create the probability density function. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== + + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Abnormally high number of cloud instances destroyed=== +This search finds for the number successfully destroyed cloud instances for every 4 hour block. This is split up between weekdays and the weekend. It then applies the probability densitiy model previously created and alerts on any outliers. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-08-21 + +
+
+ +====Search==== + +| tstats count as instances_destroyed values(All_Changes.object_id) as object_id from datamodel=Change where All_Changes.action=deleted AND All_Changes.status=success AND All_Changes.object_category=instance by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join HourOfDay isWeekend [summary cloud_excessive_instances_destroyed_v1] +| where cardinality >=16 +| apply cloud_excessive_instances_destroyed_v1 threshold=0.005 +| rename "IsOutlier(instances_destroyed)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| eval distance_from_threshold = instances_destroyed - expected_upper_threshold +| table _time, user, instances_destroyed, expected_upper_threshold, distance_from_threshold, object_id +| `abnormally_high_number_of_cloud_instances_destroyed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Instance_Activities|Suspicious Cloud Instance Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Instances Destroyed` to create the probability density function. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured within a cloud infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Abnormally high number of cloud instances launched=== +This search finds for the number successfully created cloud instances for every 4 hour block. This is split up between weekdays and the weekend. It then applies the probability densitiy model previously created and alerts on any outliers. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-08-21 + +
+
+ +====Search==== + +| tstats count as instances_launched values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=created) AND All_Changes.status=success AND All_Changes.object_category=instance by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join HourOfDay isWeekend [summary cloud_excessive_instances_created_v1] +| where cardinality >=16 +| apply cloud_excessive_instances_created_v1 threshold=0.005 +| rename "IsOutlier(instances_launched)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| eval distance_from_threshold = instances_launched - expected_upper_threshold +| table _time, user, instances_launched, expected_upper_threshold, distance_from_threshold, object_id +| `abnormally_high_number_of_cloud_instances_launched_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Cryptomining|Cloud Cryptomining]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Instance_Activities|Suspicious Cloud Instance Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Instances Launched` to create the probability density function. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Abnormally high number of cloud security group api calls=== +This search will detect a spike in the number of API calls made to your cloud infrastructure environment about security groups by a user. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-09-07 + +
+
+ +====Search==== + +| tstats count as security_group_api_calls values(All_Changes.command) as command from datamodel=Change where All_Changes.object_category=firewall AND All_Changes.status=success by All_Changes.user _time span=1h +| `drop_dm_object_name("All_Changes")` +| eval HourOfDay=strftime(_time, "%H") +| eval HourOfDay=floor(HourOfDay/4)*4 +| eval DayOfWeek=strftime(_time, "%w") +| eval isWeekend=if(DayOfWeek >= 1 AND DayOfWeek <= 5, 0, 1) +| join user HourOfDay isWeekend [ summary cloud_excessive_security_group_api_calls_v1] +| where cardinality >=16 +| apply cloud_excessive_security_group_api_calls_v1 threshold=0.005 +| rename "IsOutlier(security_group_api_calls)" as isOutlier +| where isOutlier=1 +| eval expected_upper_threshold = mvindex(split(mvindex(BoundaryRanges, -1), ":"), 0) +| where security_group_api_calls > expected_upper_threshold +| eval distance_from_threshold = security_group_api_calls - expected_upper_threshold +| table _time, user, command, security_group_api_calls, expected_upper_threshold, distance_from_threshold +| `abnormally_high_number_of_cloud_security_group_api_calls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_User_Activities|Suspicious Cloud User Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs. You also must run the baseline search `Baseline Of Cloud Security Group API Calls Per User` to create the probability density function model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== + + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Amazon eks kubernetes pod scan detection=== +This search provides detection information on unauthenticated requests against Kubernetes' Pods API + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-04-15 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` "user.username"="system:anonymous" verb=list objectRef.resource=pods requestURI="/api/v1/pods" +| rename source as cluster_name sourceIPs{} as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(responseStatus.reason) values(responseStatus.code) values(userAgent) values(verb) values(requestURI) by src_ip cluster_name user.username user.groups{} +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `amazon_eks_kubernetes_pod_scan_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on forAWS (version 4.4.0 or later), then configure your AWS CloudWatch EKS Logs.Please also customize the `kubernetes_pods_aws_scan_fingerprint_detection` macro to filter out the false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but frequency, UA and source IPs and direct request to API provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Amazon eks kubernetes cluster scan detection=== +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster in AWS + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-04-15 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` "user.username"="system:anonymous" userAgent!="AWS Security Scanner" +| rename sourceIPs{} as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(responseStatus.reason) values(source) as cluster_name values(responseStatus.code) values(userAgent) as http_user_agent values(verb) values(requestURI) by src_ip user.username user.groups{} +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +|`amazon_eks_kubernetes_cluster_scan_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudWatch EKS Logs inputs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but frequency, UA and source IPs will provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Cloud api calls from previously unseen user roles=== +This search looks for new commands from each user role. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-09-04 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where All_Changes.user_type=AssumedRole AND All_Changes.status=success by All_Changes.user, All_Changes.command All_Changes.object +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_api_calls_per_user_role user as user, command as command OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUserApiCall=min(firstTimeSeen) +| where isnull(firstTimeSeenUserApiCall) OR firstTimeSeenUserApiCall > relative_time(now(),"-24h@h") +| table firstTime, user, object, command +|`security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `cloud_api_calls_from_previously_unseen_user_roles_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_User_Activities|Suspicious Cloud User Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud API Calls Per User Role - Initial` to build the initial table of user roles, commands, and times. You must also enable the second baseline search `Previously Seen Cloud API Calls Per User Role - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `cloud_api_calls_from_previously_unseen_user_roles_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_api_calls_from_previously_unseen_user_roles_filter` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud compute instance created by previously unseen user=== +This search looks for cloud compute instances created by users who have not created them before. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-08-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object) as dest from datamodel=Change where All_Changes.action=created by All_Changes.user All_Changes.vendor_region +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_compute_creations_by_user user as user OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUser=min(firstTimeSeen) +| where isnull(firstTimeSeenUser) OR firstTimeSeenUser > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count vendor_region +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_by_previously_unseen_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Cryptomining|Cloud Cryptomining]] + + +====How To Implement==== +You must be ingesting the appropriate cloud-infrastructure logs Run the "Previously Seen Cloud Compute Creations By User" support search to create of baseline of previously seen users. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It's possible that a user will start to create compute instances for the first time, for any number of reasons. Verify with the user launching instances that this is the intended behavior. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud compute instance created in previously unused region=== +This search looks at cloud-infrastructure events where an instance is created in any region within the last hour and then compares it to a lookup file of previously seen regions where instances have been created. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2020-09-02 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime latest(_time) as lastTime values(All_Changes.object_id) as dest, count from datamodel=Change where All_Changes.action=created by All_Changes.vendor_region, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_regions vendor_region as vendor_region OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenRegion=min(firstTimeSeen) +| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count , vendor_region +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_in_previously_unused_region_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Cryptomining|Cloud Cryptomining]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Regions - Initial` to build the initial table of images observed and times. You must also enable the second baseline search `Previously Seen Cloud Regions - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_in_previously_unused_region_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that a user has unknowingly started an instance in a new region. Please verify that this activity is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud compute instance created with previously unseen image=== +This search looks for cloud compute instances being created with previously unseen image IDs. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': +* '''Last Updated''': 2018-10-12 + +
+
+ +====Search==== + +| tstats count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as dest from datamodel=Change where All_Changes.action=created by All_Changes.Instance_Changes.image_id, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| `drop_dm_object_name("Instance_Changes")` +| where image_id != "unknown" +| lookup previously_seen_cloud_compute_images image_id as image_id OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenImage=min(firstTimeSeen) +| where isnull(firstTimeSeenImage) OR firstTimeSeenImage > relative_time(now(), "-24h@h") +| table firstTime, user, image_id, count, dest +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_with_previously_unseen_image_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Cryptomining|Cloud Cryptomining]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Compute Images - Initial` to build the initial table of images observed and times. You must also enable the second baseline search `Previously Seen Cloud Compute Images - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_with_previously_unseen_image_filter` macro. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +After a new image is created, the first systems created with that image will cause this alert to fire. Verify that the image being used was created by a legitimate user. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud compute instance created with previously unseen instance type=== +Find EC2 instances being created with previously unseen instance types. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': +* '''Last Updated''': 2020-09-12 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as dest, count from datamodel=Change where All_Changes.action=created by All_Changes.Instance_Changes.instance_type, All_Changes.user +| `drop_dm_object_name("All_Changes")` +| `drop_dm_object_name("Instance_Changes")` +| where instance_type != "unknown" +| lookup previously_seen_cloud_compute_instance_types instance_type as instance_type OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenInstanceType=min(firstTimeSeen) +| where isnull(firstTimeSeenInstanceType) OR firstTimeSeenInstanceType > relative_time(now(), "-24h@h") +| table firstTime, user, dest, count, instance_type +| `security_content_ctime(firstTime)` +| `cloud_compute_instance_created_with_previously_unseen_instance_type_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Cryptomining|Cloud Cryptomining]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Compute Instance Types - Initial` to build the initial table of instance types observed and times. You must also enable the second baseline search `Previously Seen Cloud Compute Instance Types - Update` to keep this table up to date and to age out old data. You can also provide additional filtering for this search by customizing the `cloud_compute_instance_created_with_previously_unseen_instance_type_filter` macro. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that an admin will create a new system using a new instance type that has never been used before. Verify with the creator that they intended to create the system with the new instance type. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud instance modified by previously unseen user=== +This search looks for cloud instances being modified by users who have not previously modified them. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-29 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime, latest(_time) as lastTime values(All_Changes.object_id) as object_id values(All_Changes.command) as command from datamodel=Change where All_Changes.action=modified All_Changes.change_type=EC2 All_Changes.status=success by All_Changes.user +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_instance_modifications_by_user user as user OUTPUTNEW firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenUser=min(firstTimeSeen) +| where isnull(firstTimeSeenUser) OR firstTimeSeenUser > relative_time(now(), "-24h@h") +| table firstTime user command object_id count +| `security_content_ctime(firstTime)` +| `cloud_instance_modified_by_previously_unseen_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Instance_Activities|Suspicious Cloud Instance Activities]] + + +====How To Implement==== +This search has a dependency on other searches to create and update a baseline of users observed to be associated with this activity. The search "Previously Seen Cloud Instance Modifications By User - Update" should be enabled for this detection to properly work. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It's possible that a new user will start to modify EC2 instances when they haven't before for any number of reasons. Verify with the user that is modifying instances that this is the intended behavior. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud provisioning activity from previously unseen city=== +This search looks for cloud provisioning activities from previously unseen cities. Provisioning activities are defined broadly as any event that runs or creates something. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-10-09 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(City) +| lookup previously_seen_cloud_provisioning_activity_sources City as City OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenCity=min(firstTimeSeen) +| where isnull(firstTimeSeenCity) OR firstTimeSeenCity > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, City, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_city_filter` +| `security_content_ctime(firstTime)` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Provisioning_Activities|Suspicious Cloud Provisioning Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_city_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud provisioning activity from previously unseen country=== +This search looks for cloud provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that runs or creates something. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-10-09 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(Country) +| lookup previously_seen_cloud_provisioning_activity_sources Country as Country OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenCountry=min(firstTimeSeen) +| where isnull(firstTimeSeenCountry) OR firstTimeSeenCountry > relative_time(now(), "-24h@h") +| table firstTime, src, Country, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_country_filter` +| `security_content_ctime(firstTime)` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Provisioning_Activities|Suspicious Cloud Provisioning Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_country_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud provisioning activity from previously unseen ip address=== +This search looks for cloud provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that runs or creates something. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-08-16 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime, values(All_Changes.object_id) as object_id from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| lookup previously_seen_cloud_provisioning_activity_sources src as src OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenSrc=min(firstTimeSeen) +| where isnull(firstTimeSeenSrc) OR firstTimeSeenSrc > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, user, object_id, command +| `cloud_provisioning_activity_from_previously_unseen_ip_address_filter` +| `security_content_ctime(firstTime)` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Provisioning_Activities|Suspicious Cloud Provisioning Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_ip_address_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Cloud provisioning activity from previously unseen region=== +This search looks for cloud provisioning activities from previously unseen regions. Provisioning activities are defined broadly as any event that runs or creates something. + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-08-16 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime, latest(_time) as lastTime from datamodel=Change where (All_Changes.action=started OR All_Changes.action=created) All_Changes.status=success by All_Changes.src, All_Changes.user, All_Changes.object, All_Changes.command +| `drop_dm_object_name("All_Changes")` +| iplocation src +| where isnotnull(Region) +| lookup previously_seen_cloud_provisioning_activity_sources Region as Region OUTPUT firstTimeSeen, enough_data +| eventstats max(enough_data) as enough_data +| where enough_data=1 +| eval firstTimeSeenRegion=min(firstTimeSeen) +| where isnull(firstTimeSeenRegion) OR firstTimeSeenRegion > relative_time(now(), `previously_unseen_cloud_provisioning_activity_window`) +| table firstTime, src, Region, user, object, command +| `cloud_provisioning_activity_from_previously_unseen_region_filter` +| `security_content_ctime(firstTime)` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Provisioning_Activities|Suspicious Cloud Provisioning Activities]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You should run the baseline search `Previously Seen Cloud Provisioning Activity Sources - Initial` to build the initial table of source IP address, geographic locations, and times. You must also enable the second baseline search `Previously Seen Cloud Provisioning Activity Sources - Update` to keep this table up to date and to age out old data. You can adjust the time window for this search by updating the `previously_unseen_cloud_provisioning_activity_window` macro. You can also provide additional filtering for this search by customizing the `cloud_provisioning_activity_from_previously_unseen_region_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Detect aws console login by new user=== +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': +* '''Last Updated''': 2020-05-28 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user +| `drop_dm_object_name(Authentication)` +| inputlookup append=t previously_seen_users_console_logins +| stats min(firstTime) as firstTime max(lastTime) as lastTime by user +| eval userStatus=if(firstTime >=relative_time(now(),"-24h@h"), "First Time Logging into AWS Console", "Previously Seen User") +|where userStatus="First Time Logging into AWS Console" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_aws_console_login_by_new_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Authentication_Activities|Suspicious Cloud Authentication Activities]] + + +====How To Implement==== +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Detect aws console login by user from new city=== +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2020-10-07 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user City +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user City +| fields earliestseen user City] +| eval userCity=if(firstTime >= relative_time(now(), "-24h@h"), "New City","Previously Seen City") +| eval userStatus=if(earliestseen >= relative_time(now(), "-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userCity = "New City" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user City userStatus userCity +| `detect_aws_console_login_by_user_from_new_city_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_Login_Activities|Suspicious AWS Login Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Authentication_Activities|Suspicious Cloud Authentication Activities]] + + +====How To Implement==== +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_city_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Detect aws console login by user from new country=== +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2020-10-07 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user Country +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user Country +| fields earliestseen user Country] +| eval userCountry=if(firstTime >= relative_time(now(), "-24h@h"), "New Country","Previously Seen Country") +| eval userStatus=if(earliestseen >= relative_time(now(),"-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userCountry = "New Country" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user Country userStatus userCountry +| `detect_aws_console_login_by_user_from_new_country_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_Login_Activities|Suspicious AWS Login Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Authentication_Activities|Suspicious Cloud Authentication Activities]] + + +====How To Implement==== +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_country_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Detect aws console login by user from new region=== +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour + +* '''Product''': Splunk Security Analytics for AWS, Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2020-10-07 + +
+
+ +====Search==== + +| tstats earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Authentication where Authentication.signature=ConsoleLogin by Authentication.user Authentication.src +| iplocation Authentication.src +| `drop_dm_object_name(Authentication)` +| table firstTime lastTime user Region +| join user type=outer [ +| inputlookup previously_seen_users_console_logins +| stats earliest(firstTime) AS earliestseen by user Region +| fields earliestseen user Region] +| eval userRegion=if(firstTime >= relative_time(now(), "-24h@h"), "New Region","Previously Seen Region") +| eval userStatus=if(earliestseen >= relative_time(now(), "-24h@h") OR isnull(earliestseen), "New User","Old User") +| where userRegion = "New Region" AND userStatus != "Old User" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime lastTime user Region userStatus userRegion +| `detect_aws_console_login_by_user_from_new_region_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_Login_Activities|Suspicious AWS Login Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Cloud_Authentication_Activities|Suspicious Cloud Authentication Activities]] + + +====How To Implement==== +You must install and configure the Splunk Add-on for AWS (version 5.1.0 or later) and Enterprise Security 6.2, which contains the required updates to the Authentication data model for cloud use cases. Run the `Previously Seen Users in CloudTrail - Initial` support search only once to create a baseline of previously seen IAM users within the last 30 days. Run `Previously Seen Users in CloudTrail - Update` hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. You can also provide additional filtering for this search by customizing the `detect_aws_console_login_by_user_from_new_region_filter` macro. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/abnormally_high_cloud_instances_launched/cloudtrail_behavioural_detections.json + + +''version'': 1 +
+
+ +---- + +===Detect gcp storage access from a new ip=== +This search looks at GCP Storage bucket-access logs and detects new or previously unseen remote IP addresses that have successfully accessed a GCP Storage bucket. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2020-08-10 + +
+
+ +====Search==== +`google_gcp_pubsub_message` +| multikv +| rename sc_status_ as status +| rename cs_object_ as bucket_name +| rename c_ip_ as remote_ip +| rename cs_uri_ as request_uri +| rename cs_method_ as operation +| search status="\"200\"" +| stats earliest(_time) as firstTime latest(_time) as lastTime by bucket_name remote_ip operation request_uri +| table firstTime, lastTime, bucket_name, remote_ip, operation, request_uri +| inputlookup append=t previously_seen_gcp_storage_access_from_remote_ip.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by bucket_name remote_ip operation request_uri +| outputlookup previously_seen_gcp_storage_access_from_remote_ip.csv +| eval newIP=if(firstTime >= relative_time(now(),"-70m@m"), 1, 0) +| where newIP=1 +| eval first_time=strftime(firstTime,"%m/%d/%y %H:%M:%S") +| eval last_time=strftime(lastTime,"%m/%d/%y %H:%M:%S") +| table first_time last_time bucket_name remote_ip operation request_uri +| `detect_gcp_storage_access_from_a_new_ip_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_GCP_Storage_Activities|Suspicious GCP Storage Activities]] + + +====How To Implement==== +This search relies on the Splunk Add-on for Google Cloud Platform, setting up a Cloud Pub/Sub input, along with the relevant GCP PubSub topics and logging sink to capture GCP Storage Bucket events (https://cloud.google.com/logging/docs/routing/overview). In order to capture public GCP Storage Bucket access logs, you must also enable storage bucket logging to your PubSub Topic as per https://cloud.google.com/storage/docs/access-logs. These logs are deposited into the nominated Storage Bucket on an hourly basis and typically show up by 15 minutes past the hour. It is recommended to configure any saved searches or correlation searches in Enterprise Security to run on an hourly basis at 30 minutes past the hour (cron definition of 30 * * * *). A lookup table (previously_seen_gcp_storage_access_from_remote_ip.csv) stores the previously seen access requests, and is used by this search to determine any newly seen IP addresses accessing the Storage Buckets. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +GCP Storage buckets can be accessed from any IP (if the ACLs are open to allow it), as long as it can make a successful connection. This will be a false postive, since the search is looking for a new IP within the past two hours. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect new open gcp storage buckets=== +This search looks for GCP PubSub events where a user has created an open/public GCP Storage bucket. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2020-08-05 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.resource.type=gcs_bucket data.protoPayload.methodName=storage.setIamPermissions +| spath output=action path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.action +| spath output=user path=data.protoPayload.authenticationInfo.principalEmail +| spath output=location path=data.protoPayload.resourceLocation.currentLocations{} +| spath output=src path=data.protoPayload.requestMetadata.callerIp +| spath output=bucketName path=data.protoPayload.resourceName +| spath output=role path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.role +| spath output=member path=data.protoPayload.serviceData.policyDelta.bindingDeltas{}.member +| search (member=allUsers AND action=ADD) +| table _time, bucketName, src, user, location, action, role, member +| search `detect_new_open_gcp_storage_buckets_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_GCP_Storage_Activities|Suspicious GCP Storage Activities]] + + +====How To Implement==== +This search relies on the Splunk Add-on for Google Cloud Platform, setting up a Cloud Pub/Sub input, along with the relevant GCP PubSub topics and logging sink to capture GCP Storage Bucket events (https://cloud.google.com/logging/docs/routing/overview). + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +While this search has no known false positives, it is possible that a GCP admin has legitimately created a public bucket for a specific purpose. That said, GCP strongly advises against granting full control to the "allUsers" group. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect new open s3 buckets over aws cli=== +This search looks for CloudTrail events where a user has created an open/public S3 bucket over the aws cli. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`cloudtrail` eventSource="s3.amazonaws.com" eventName=PutBucketAcl OR requestParameters.accessControlList.x-amz-grant-read-acp IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-write IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-write-acp IN ("*AuthenticatedUsers","*AllUsers") OR requestParameters.accessControlList.x-amz-grant-full-control IN ("*AuthenticatedUsers","*AllUsers") +| rename requestParameters.bucketName AS bucketName +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId userAgent bucketName requestParameters.accessControlList.x-amz-grant-read requestParameters.accessControlList.x-amz-grant-read-acp requestParameters.accessControlList.x-amz-grant-write requestParameters.accessControlList.x-amz-grant-write-acp requestParameters.accessControlList.x-amz-grant-full-control +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_open_s3_buckets_over_aws_cli_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_S3_Activities|Suspicious AWS S3 Activities]] + + +====How To Implement==== + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +While this search has no known false positives, it is possible that an AWS admin has legitimately created a public bucket for a specific purpose. That said, AWS strongly advises against granting full control to the "All Users" group. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1530/aws_s3_public_bucket/aws_cloudtrail_events.json + + +''version'': 1 +
+
+ +---- + +===Detect new open s3 buckets=== +This search looks for CloudTrail events where a user has created an open/public S3 bucket. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`cloudtrail` eventSource=s3.amazonaws.com eventName=PutBucketAcl +| rex field=_raw "(?{.+})" +| spath input=json_field output=grantees path=requestParameters.AccessControlPolicy.AccessControlList.Grant{} +| search grantees=* +| mvexpand grantees +| spath input=grantees output=uri path=Grantee.URI +| spath input=grantees output=permission path=Permission +| search uri IN ("http://acs.amazonaws.com/groups/global/AllUsers","http://acs.amazonaws.com/groups/global/AuthenticatedUsers") +| search permission IN ("READ","READ_ACP","WRITE","WRITE_ACP","FULL_CONTROL") +| rename requestParameters.bucketName AS bucketName +| stats count min(_time) as firstTime max(_time) as lastTime by userName userIdentity.principalId userAgent uri permission bucketName +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_open_s3_buckets_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_S3_Activities|Suspicious AWS S3 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +While this search has no known false positives, it is possible that an AWS admin has legitimately created a public bucket for a specific purpose. That said, AWS strongly advises against granting full control to the "All Users" group. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1530/aws_s3_public_bucket/aws_cloudtrail_events.json + + +''version'': 2 +
+
+ +---- + +===Detect s3 access from a new ip=== +This search looks at S3 bucket-access logs and detects new or previously unseen remote IP addresses that have successfully accessed an S3 bucket. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2018-06-28 + +
+
+ +====Search==== +`aws_s3_accesslogs` http_status=200 [search `aws_s3_accesslogs` http_status=200 +| stats earliest(_time) as firstTime latest(_time) as lastTime by bucket_name remote_ip +| inputlookup append=t previously_seen_S3_access_from_remote_ip.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by bucket_name remote_ip +| outputlookup previously_seen_S3_access_from_remote_ip.csv +| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newIP=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table bucket_name remote_ip] +| iplocation remote_ip +|rename remote_ip as src_ip +| table _time bucket_name src_ip City Country operation request_uri +| `detect_s3_access_from_a_new_ip_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_S3_Activities|Suspicious AWS S3 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your S3 access logs' inputs. This search works best when you run the "Previously Seen S3 Bucket Access by Remote IP" support search once to create a history of previously seen remote IPs and bucket names. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +S3 buckets can be accessed from any IP, as long as it can make a successful connection. This will be a false postive, since the search is looking for a new IP within the past hour + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect spike in aws security hub alerts for ec2 instance=== +This search looks for a spike in number of of AWS security Hub alerts for an EC2 instance in 4 hours intervals + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`aws_securityhub_finding` "Resources{}.Type"=AWSEC2Instance +| bucket span=4h _time +| stats count AS alerts values(Title) as Title values(Types{}) as Types values(vendor_account) as vendor_account values(vendor_region) as vendor_region values(severity) as severity by _time dest +| eventstats avg(alerts) as total_alerts_avg, stdev(alerts) as total_alerts_stdev +| eval threshold_value = 3 +| eval isOutlier=if(alerts > total_alerts_avg+(total_alerts_stdev * threshold_value), 1, 0) +| search isOutlier=1 +| table _time dest alerts Title Types vendor_account vendor_region severity isOutlier total_alerts_avg +| `detect_spike_in_aws_security_hub_alerts_for_ec2_instance_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Security_Hub_Alerts|AWS Security Hub Alerts]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your Security Hub inputs. The threshold_value should be tuned to your environment and schedule these searches according to the bucket span interval. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +None + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/security_hub_ec2_spike/security_hub_ec2_spike.json + + +''version'': 3 +
+
+ +---- + +===Detect spike in aws security hub alerts for user=== +This search looks for a spike in number of of AWS security Hub alerts for an AWS IAM User in 4 hours intervals. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`aws_securityhub_finding` "findings{}.Resources{}.Type"= AwsIamUser +| rename findings{}.Resources{}.Id as user +| bucket span=4h _time +| stats count AS alerts by _time user +| eventstats avg(alerts) as total_launched_avg, stdev(alerts) as total_launched_stdev +| eval threshold_value = 2 +| eval isOutlier=if(alerts > total_launched_avg+(total_launched_stdev * threshold_value), 1, 0) +| search isOutlier=1 +| table _time user alerts +|`detect_spike_in_aws_security_hub_alerts_for_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Security_Hub_Alerts|AWS Security Hub Alerts]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your Security Hub inputs. The threshold_value should be tuned to your environment and schedule these searches according to the bucket span interval. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +None + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Detect spike in s3 bucket deletion=== +This search detects users creating spikes in API activity related to deletion of S3 buckets in your AWS environment. It will also update the cache file that factors in the latest data. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2018-11-27 + +
+
+ +====Search==== +`cloudtrail` eventName=DeleteBucket [search `cloudtrail` eventName=DeleteBucket +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup s3_deletion_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup s3_deletion_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| spath output=bucketName path=requestParameters.bucketName +| stats values(bucketName) as bucketName, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_s3_bucket_deletion_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_S3_Activities|Suspicious AWS S3 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of S3 Bucket deletion activity by ARN" support search once to create a baseline of previously seen S3 bucket-deletion activity. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Based on the values of`dataPointThreshold` and `deviationThreshold`, the false positive rate may vary. Please modify this according the your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect spike in blocked outbound traffic from your aws=== +This search will detect spike in blocked outbound network connections originating from within your AWS environment. It will also update the cache file that factors in the latest data. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-05-07 + +
+
+ +====Search==== +`cloudwatchlogs_vpcflow` action=blocked (src_ip=10.0.0.0/8 OR src_ip=172.16.0.0/12 OR src_ip=192.168.0.0/16) ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) [search `cloudwatchlogs_vpcflow` action=blocked (src_ip=10.0.0.0/8 OR src_ip=172.16.0.0/12 OR src_ip=192.168.0.0/16) ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) +| stats count as numberOfBlockedConnections by src_ip +| inputlookup baseline_blocked_outbound_connections append=t +| fields - latestCount +| stats values(*) as * by src_ip +| rename numberOfBlockedConnections as latestCount +| eval newAvgBlockedConnections=avgBlockedConnections + (latestCount-avgBlockedConnections)/720 +| eval newStdevBlockedConnections=sqrt(((pow(stdevBlockedConnections, 2)*719 + (latestCount-newAvgBlockedConnections)*(latestCount-avgBlockedConnections))/720)) +| eval avgBlockedConnections=coalesce(newAvgBlockedConnections, avgBlockedConnections), stdevBlockedConnections=coalesce(newStdevBlockedConnections, stdevBlockedConnections), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table src_ip, latestCount, numDataPoints, avgBlockedConnections, stdevBlockedConnections +| outputlookup baseline_blocked_outbound_connections +| eval dataPointThreshold = 5, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgBlockedConnections+deviationThreshold*stdevBlockedConnections) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| table src_ip] +| stats values(dest_ip) as "Blocked Destination IPs", values(interface_id) as "resourceId" count as numberOfBlockedConnections, dc(dest_ip) as uniqueDestConnections by src_ip +| `detect_spike_in_blocked_outbound_traffic_from_your_aws_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Network_ACL_Activity|AWS Network ACL Activity]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_Traffic|Suspicious AWS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your VPC Flow logs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the number of data points required to meet the definition of "spike." The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of Blocked Outbound Connection" support search once to create a history of previously seen blocked outbound connections. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Known False Positives==== +The false-positive rate may vary based on the values of`dataPointThreshold` and `deviationThreshold`. Additionally, false positives may result when AWS administrators roll out policies enforcing network blocks, causing sudden increases in the number of blocked outbound connections. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp detect accounts with high risk roles by project=== +This search provides detection of accounts with high risk roles by projects. Compromised accounts with high risk roles can move laterally or even scalate privileges at different projects depending on organization schema. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-10-09 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.request.policy.bindings{}.role=roles/owner OR roles/editor OR roles/iam.serviceAccountUser OR roles/iam.serviceAccountAdmin OR roles/iam.serviceAccountTokenCreator OR roles/dataflow.developer OR roles/dataflow.admin OR roles/composer.admin OR roles/dataproc.admin OR roles/dataproc.editor +| table data.resource.type data.protoPayload.authenticationInfo.principalEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.authorizationInfo{}.resource data.protoPayload.response.bindings{}.role data.protoPayload.response.bindings{}.members{} +| `gcp_detect_accounts_with_high_risk_roles_by_project_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#GCP_Cross_Account_Activity|GCP Cross Account Activity]] + + +====How To Implement==== +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Accounts with high risk roles should be reduced to the minimum number needed, however specific tasks and setups may be simply expected behavior within organization + +====Reference==== + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + +* https://cloud.google.com/iam/docs/understanding-roles + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp detect gcploit framework=== +This search provides detection of GCPloit exploitation framework. This framework can be used to escalate privileges and move laterally from compromised high privilege accounts. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-10-08 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.request.function.timeout=539s +| table src src_user data.resource.labels.project_id data.protoPayload.request.function.serviceAccountEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.request.location http_user_agent +| `gcp_detect_gcploit_framework_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#GCP_Cross_Account_Activity|GCP Cross Account Activity]] + + +====How To Implement==== +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Payload.request.function.timeout value can possibly be match with other functions or requests however the source user and target request account may indicate an attempt to move laterally accross acounts or projects + +====Reference==== + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp detect high risk permissions by resource and account=== +This search provides detection of high risk permissions by resource and accounts. These are permissions that can allow attackers with compromised accounts to move laterally and escalate privileges. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-10-09 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.authorizationInfo{}.permission=iam.serviceAccounts.getaccesstoken OR iam.serviceAccounts.setIamPolicy OR iam.serviceAccounts.actas OR dataflow.jobs.create OR composer.environments.create OR dataproc.clusters.create +|table data.protoPayload.requestMetadata.callerIp data.protoPayload.authenticationInfo.principalEmail data.protoPayload.authorizationInfo{}.permission data.protoPayload.response.bindings{}.members{} data.resource.labels.project_id +| `gcp_detect_high_risk_permissions_by_resource_and_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#GCP_Cross_Account_Activity|GCP Cross Account Activity]] + + +====How To Implement==== +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +High risk permissions are part of any GCP environment, however it is important to track resource and accounts usage, this search may produce false positives. + +====Reference==== + +* https://github.com/dxa4481/gcploit + +* https://www.youtube.com/watch?v=Ml09R38jpok + +* https://cloud.google.com/iam/docs/permissions-reference + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp kubernetes cluster pod scan detection=== +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster's pods + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-07-17 + +
+
+ +====Search==== +`google_gcp_pubsub_message` category=kube-audit +|spath input=properties.log +|search responseStatus.code=401 +|table sourceIPs{} userAgent verb requestURI responseStatus.reason properties.pod +| `gcp_kubernetes_cluster_pod_scan_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a Pub/Sub subscription to be imported to Splunk. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but frequency, User Agent, source IPs and pods will provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp kubernetes cluster scan detection=== +This search provides information of unauthenticated requests via user agent, and authentication data against Kubernetes cluster + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-04-15 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.requestMetadata.callerIp!=127.0.0.1 data.protoPayload.requestMetadata.callerIp!=::1 "data.labels.authorization.k8s.io/decision"=forbid "data.protoPayload.status.message"=PERMISSION_DENIED data.protoPayload.authenticationInfo.principalEmail="system:anonymous" +| rename data.protoPayload.requestMetadata.callerIp as src_ip +| stats count min(_time) as firstTime max(_time) as lastTime values(data.protoPayload.methodName) as method_name values(data.protoPayload.resourceName) as resource_name values(data.protoPayload.requestMetadata.callerSuppliedUserAgent) as http_user_agent by src_ip data.resource.labels.cluster_name +| rename data.resource.labels.cluster_name as cluster_name +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `gcp_kubernetes_cluster_scan_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a Pub/Sub subscription to be imported to Splunk. You must also install Cloud Infrastructure data model.Customize the macro kubernetes_gcp_scan_fingerprint_attack_detection to filter out FPs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but frequency, User Agent and source IPs will provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===High number of login failures from a single source=== +This search will detect more than 5 login failures in Office365 Azure Active Directory from a single source IP address. Please adjust the threshold value of 5 as suited for your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1110.001/ T1110.001] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Operation=UserLoginFailed record_type=AzureActiveDirectoryStsLogon app=AzureActiveDirectory +| stats count dc(user) as accounts_locked values(user) as user values(LogonError) as LogonError values(authentication_method) as authentication_method values(signature) as signature values(UserAgent) as UserAgent by src_ip record_type Operation app +| search accounts_locked >= 5 +| `high_number_of_login_failures_from_a_single_source_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1110.001 +| Password Guessing +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes aws detect rbac authorization by account=== +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding top to see both extremes of RBAC by accounts occurrences + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` annotations.authorization.k8s.io/reason=* +| table sourceIPs{} user.username userAgent annotations.authorization.k8s.io/reason +| stats count by user.username annotations.authorization.k8s.io/reason +| rare user.username annotations.authorization.k8s.io/reason +|`kubernetes_aws_detect_rbac_authorization_by_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes aws detect most active service accounts by pod=== +This search provides information on Kubernetes service accounts,accessing pods by IP address, verb and decision + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` user.groups{}=system:serviceaccounts objectRef.resource=pods +| table sourceIPs{} user.username userAgent verb annotations.authorization.k8s.io/decision +| top sourceIPs{} user.username verb annotations.authorization.k8s.io/decision +|`kubernetes_aws_detect_most_active_service_accounts_by_pod_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all service accounts interactions are malicious. Analyst must consider IP, verb and decision context when trying to detect maliciousness. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes aws detect sensitive role access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` objectRef.resource=clusterroles OR clusterrolebindings sourceIPs{}!=::1 sourceIPs{}!=127.0.0.1 +| table sourceIPs{} user.username user.groups{} objectRef.namespace requestURI annotations.authorization.k8s.io/reason +| dedup user.username user.groups{} +|`kubernetes_aws_detect_sensitive_role_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive role resource access is necessary for cluster operation, however source IP, namespace and user group may indicate possible malicious use. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes aws detect service accounts forbidden failure access=== +This search provides information on Kubernetes service accounts with failure or forbidden access status, this search can be extended by using top or rare operators to find trends or rarities in failure status, user agents, source IPs and request URI + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` user.groups{}=system:serviceaccounts responseStatus.status = Failure +| table sourceIPs{} user.username userAgent verb responseStatus.status requestURI +| `kubernetes_aws_detect_service_accounts_forbidden_failure_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes aws detect suspicious kubectl calls=== +This search provides information on anonymous Kubectl calls with IP, verb namespace and object access context + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` userAgent=kubectl* sourceIPs{}!=127.0.0.1 sourceIPs{}!=::1 src_user=system:anonymous +| table src_ip src_user verb userAgent requestURI +| stats count by src_ip src_user verb userAgent requestURI +|`kubernetes_aws_detect_suspicious_kubectl_calls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Kubectl calls are not malicious by nature. However source IP, verb and Object can reveal potential malicious activity, specially anonymous suspicious IPs and sensitive objects such as configmaps or secrets + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect rbac authorization by account=== +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding rare or top to see both extremes of RBAC by accounts occurrences + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-26 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search annotations.authorization.k8s.io/reason=* +| table sourceIPs{} user.username userAgent annotations.authorization.k8s.io/reason +|stats count by user.username annotations.authorization.k8s.io/reason +| rare user.username annotations.authorization.k8s.io/reason +|`kubernetes_azure_detect_rbac_authorization_by_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect most active service accounts by pod namespace=== +This search provides information on Kubernetes service accounts,accessing pods and namespaces by IP address and verb + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-26 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search user.groups{}=system:serviceaccounts* OR user.username=system.anonymous OR annotations.authorization.k8s.io/decision=allow +| table sourceIPs{} user.username userAgent verb responseStatus.reason responseStatus.status properties.pod objectRef.namespace +| top sourceIPs{} user.username verb responseStatus.status properties.pod objectRef.namespace +|`kubernetes_azure_detect_most_active_service_accounts_by_pod_namespace_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all service accounts interactions are malicious. Analyst must consider IP and verb context when trying to detect maliciousness. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect sensitive object access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search objectRef.resource=secrets OR configmaps user.username=system.anonymous OR annotations.authorization.k8s.io/decision=allow +|table user.username user.groups{} objectRef.resource objectRef.namespace objectRef.name annotations.authorization.k8s.io/reason +|dedup user.username user.groups{} +|`kubernetes_azure_detect_sensitive_object_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect sensitive role access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search objectRef.resource=clusterroles OR clusterrolebindings +| table sourceIPs{} user.username user.groups{} objectRef.namespace requestURI annotations.authorization.k8s.io/reason +| dedup user.username user.groups{} +|`kubernetes_azure_detect_sensitive_role_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive role resource access is necessary for cluster operation, however source IP, namespace and user group may indicate possible malicious use. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect service accounts forbidden failure access=== +This search provides information on Kubernetes service accounts with failure or forbidden access status + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search user.groups{}=system:serviceaccounts* responseStatus.reason=Forbidden +| table sourceIPs{} user.username userAgent verb responseStatus.reason responseStatus.status properties.pod objectRef.namespace +|`kubernetes_azure_detect_service_accounts_forbidden_failure_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure detect suspicious kubectl calls=== +This search provides information on rare Kubectl calls with IP, verb namespace and object access context + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-26 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| spath input=responseObject.metadata.annotations.kubectl.kubernetes.io/last-applied-configuration +| search userAgent=kubectl* sourceIPs{}!=127.0.0.1 sourceIPs{}!=::1 +| table sourceIPs{} verb userAgent user.groups{} objectRef.resource objectRef.namespace requestURI +| rare sourceIPs{} verb userAgent user.groups{} objectRef.resource objectRef.namespace requestURI +|`kubernetes_azure_detect_suspicious_kubectl_calls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Kubectl calls are not malicious by nature. However source IP, verb and Object can reveal potential malicious activity, specially suspicious IPs and sensitive objects such as configmaps or secrets + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure pod scan fingerprint=== +This search provides information of unauthenticated requests via source IP user agent, request URI and response status data against Kubernetes cluster pod in Azure + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search responseStatus.code=401 +| table sourceIPs{} userAgent verb requestURI responseStatus.reason properties.pod +|`kubernetes_azure_pod_scan_fingerprint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but source IPs, userAgent, verb, request URI and response status will provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes azure scan fingerprint=== +This search provides information of unauthenticated requests via source IP user agent, request URI and response status data against Kubernetes cluster in Azure + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-05-19 + +
+
+ +====Search==== +`kubernetes_azure` category=kube-audit +| spath input=properties.log +| search responseStatus.code=401 +| table sourceIPs{} userAgent verb requestURI responseStatus.reason +|`kubernetes_azure_scan_fingerprint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Scanning_Activity|Kubernetes Scanning Activity]] + + +====How To Implement==== +You must install the Add-on for Microsoft Cloud Services and Configure Kube-Audit data diagnostics + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +Not all unauthenticated requests are malicious, but source IPs, userAgent, verb, request URI and response status will provide context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect rbac authorizations by account=== +This search provides information on Kubernetes RBAC authorizations by accounts, this search can be modified by adding top to see both extremes of RBAC by accounts occurrences + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-07-11 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.labels.authorization.k8s.io/reason=ClusterRoleBinding OR Clusterrole +| table src_ip src_user data.labels.authorization.k8s.io/decision data.labels.authorization.k8s.io/reason +| rare src_user data.labels.authorization.k8s.io/reason +|`kubernetes_gcp_detect_rbac_authorizations_by_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk AWS add on for GCP. This search works with pubsub messaging service logs + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all RBAC Authorications are malicious. RBAC authorizations can uncover malicious activity specially if sensitive Roles have been granted. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect most active service accounts by pod=== +This search provides information on Kubernetes service accounts,accessing pods by IP address, verb and decision + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-07-10 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.request.spec.group{}=system:serviceaccounts +| table src_ip src_user http_user_agent data.protoPayload.request.spec.nonResourceAttributes.verb data.labels.authorization.k8s.io/decision data.protoPayload.response.spec.resourceAttributes.resource +| top src_ip src_user http_user_agent data.labels.authorization.k8s.io/decision data.protoPayload.response.spec.resourceAttributes.resource +|`kubernetes_gcp_detect_most_active_service_accounts_by_pod_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk GCP add on. This search works with pubsub messaging service logs + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all service accounts interactions are malicious. Analyst must consider IP, verb and decision context when trying to detect maliciousness. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect sensitive object access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmaps or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-07-11 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.authorizationInfo{}.resource=configmaps OR secrets +| table data.protoPayload.requestMetadata.callerIp src_user data.resource.labels.cluster_name data.protoPayload.request.metadata.namespace data.labels.authorization.k8s.io/decision +| dedup data.protoPayload.requestMetadata.callerIp src_user data.resource.labels.cluster_name +|`kubernetes_gcp_detect_sensitive_object_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install splunk add on for GCP . This search works with pubsub messaging service logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive object access is not necessarily malicious but user and object context can provide guidance for detection. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect sensitive role access=== +This search provides information on Kubernetes accounts accessing sensitve objects such as configmpas or secrets + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-07-11 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.labels.authorization.k8s.io/reason=ClusterRoleBinding OR Clusterrole dest=apis/rbac.authorization.k8s.io/v1 src_ip!=::1 +| table src_ip src_user http_user_agent data.labels.authorization.k8s.io/decision data.labels.authorization.k8s.io/reason +| dedup src_ip src_user +|`kubernetes_gcp_detect_sensitive_role_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Role_Activity|Kubernetes Sensitive Role Activity]] + + +====How To Implement==== +You must install splunk add on for GCP. This search works with pubsub messaging servicelogs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sensitive role resource access is necessary for cluster operation, however source IP, user agent, decision and reason may indicate possible malicious use. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect service accounts forbidden failure access=== +This search provides information on Kubernetes service accounts with failure or forbidden access status, this search can be extended by using top or rare operators to find trends or rarities in failure status, user agents, source IPs and request URI + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-06-23 + +
+
+ +====Search==== +`google_gcp_pubsub_message` system:serviceaccounts data.protoPayload.response.status.allowed!=* +| table src_ip src_user http_user_agent data.protoPayload.response.spec.resourceAttributes.namespace data.resource.labels.cluster_name data.protoPayload.response.spec.resourceAttributes.verb data.protoPayload.request.status.allowed data.protoPayload.response.status.reason data.labels.authorization.k8s.io/decision +| dedup src_ip src_user +| `kubernetes_gcp_detect_service_accounts_forbidden_failure_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install splunk add on for GCP. This search works with pubsub messaging service logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +This search can give false positives as there might be inherent issues with authentications and permissions at cluster. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kubernetes gcp detect suspicious kubectl calls=== +This search provides information on anonymous Kubectl calls with IP, verb namespace and object access context + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-07-11 + +
+
+ +====Search==== +`google_gcp_pubsub_message` data.protoPayload.requestMetadata.callerSuppliedUserAgent=kubectl* src_user=system:unsecured OR src_user=system:anonymous +| table src_ip src_user data.protoPayload.requestMetadata.callerSuppliedUserAgent data.protoPayload.authorizationInfo{}.granted object_path +|dedup src_ip src_user +|`kubernetes_gcp_detect_suspicious_kubectl_calls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Kubernetes_Sensitive_Object_Access_Activity|Kubernetes Sensitive Object Access Activity]] + + +====How To Implement==== +You must install splunk add on for GCP. This search works with pubsub messaging logs. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Kubectl calls are not malicious by nature. However source IP, source user, user agent, object path, and authorization context can reveal potential malicious activity, specially anonymous suspicious IPs and sensitive objects such as configmaps or secrets + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===New container uploaded to aws ecr=== +This searches show information on uploaded containers including source user, image id, source IP user type, http user agent, region, first time, last time of operation (PutImage). These searches are based on Cloud Infrastructure Data Model. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1525/ T1525] +* '''Last Updated''': 2020-02-20 + +
+
+ +====Search==== + +| tstats count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Cloud_Infrastructure.Compute where Compute.user_type!="AssumeRole" AND Compute.http_user_agent="AWS Internal" AND Compute.event_name="PutImage" by Compute.image_id Compute.src_user Compute.src Compute.region Compute.msg Compute.user_type +| `drop_dm_object_name("Compute")` +| `new_container_uploaded_to_aws_ecr_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Container_Implantation_Monitoring_and_Investigation|Container Implantation Monitoring and Investigation]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You must also install Cloud Infrastructure data model. Please also customize the `container_implant_aws_detection_filter` macro to filter out the false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1525 +| Implant Container Image +| Persistence +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Uploading container is a normal behavior from developers or users with access to container registry. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===O365 add app role assignment grant user=== +This search detects the creation of a new Federation setting by alerting about an specific event related to its creation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.003/ T1136.003] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`o365_management_activity` Workload=AzureActiveDirectory Operation="Add app role assignment grant to user." +| stats count min(_time) as firstTime max(_time) as lastTime values(Actor{}.ID) as Actor.ID values(Actor{}.Type) as Actor.Type by ActorIpAddress dest ResultStatus +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_add_app_role_assignment_grant_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.003 +| Cloud Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +The creation of a new Federation is not necessarily malicious, however this events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a different cloud provider. + +====Reference==== + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_new_federation/o365_new_federation.json + + +''version'': 1 +
+
+ +---- + +===O365 added service principal=== +This search detects the creation of a new Federation setting by alerting about an specific event related to its creation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.003/ T1136.003] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`o365_management_activity` Workload=AzureActiveDirectory signature="Add service principal credentials." +| stats min(_time) as firstTime max(_time) as lastTime values(Actor{}.ID) as Actor.ID values(ModifiedProperties{}.Name) as ModifiedProperties.Name values(ModifiedProperties{}.NewValue) as ModifiedProperties.NewValue values(Target{}.ID) as Target.ID by ActorIpAddress signature +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_added_service_principal_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.003 +| Cloud Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +The creation of a new Federation is not necessarily malicious, however these events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a different cloud provider. + +====Reference==== + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.sygnia.co/golden-saml-advisory + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_add_service_principal/o365_add_service_principal.json + + +''version'': 1 +
+
+ +---- + +===O365 bypass mfa via trusted ip=== +This search detects newly added IP addresses/CIDR blocks to the list of MFA Trusted IPs to bypass multi factor authentication. Attackers are often known to use this technique so that they can bypass the MFA system. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.007/ T1562.007] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`o365_management_activity` signature="Set Company Information." ModifiedProperties{}.Name=StrongAuthenticationPolicy +| rex max_match=100 field=ModifiedProperties{}.NewValue "(?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2})" +| rex max_match=100 field=ModifiedProperties{}.OldValue "(?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2})" +| eval ip_addresses_old=if(isnotnull(ip_addresses_old),ip_addresses_old,"0") +| mvexpand ip_addresses_new_added +| where isnull(mvfind(ip_addresses_old,ip_addresses_new_added)) +|stats count min(_time) as firstTime max(_time) as lastTime values(ip_addresses_old) as ip_addresses_old by user ip_addresses_new_added signature vendor_product vendor_account status user_id action +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_bypass_mfa_via_trusted_ip_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== +You must install Splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +Unless it is a special case, it is uncommon to continually update Trusted IPs to MFA configuration. + +====Reference==== + +* https://i.blackhat.com/USA-20/Thursday/us-20-Bienstock-My-Cloud-Is-APTs-Cloud-Investigating-And-Defending-Office-365.pdf + +* https://attack.mitre.org/techniques/T1562/007/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.007/o365_bypass_mfa_via_trusted_ip/o365_bypass_mfa_via_trusted_ip.json + + +''version'': 1 +
+
+ +---- + +===O365 disable mfa=== +This search detects when multi factor authentication has been disabled, what entitiy performed the action and against what user + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1556/ T1556] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Operation="Disable Strong Authentication." +| stats count earliest(_time) as firstTime latest(_time) as lastTime by UserType Operation user status signature dest ResultStatus +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_disable_mfa_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +Unless it is a special case, it is uncommon to disable MFA or Strong Authentication + +====Reference==== + +* https://attack.mitre.org/techniques/T1556/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1556/o365_disable_mfa/o365_disable_mfa.json + + +''version'': 1 +
+
+ +---- + +===O365 excessive authentication failures alert=== +This search detects when an excessive number of authentication failures occur this search also includes attempts against MFA prompt codes + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1110/ T1110] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Workload=AzureActiveDirectory UserAuthenticationMethod=* status=Failed +| stats count earliest(_time) as firstTime latest(_time) values(UserAuthenticationMethod) AS UserAuthenticationMethod values(UserAgent) AS UserAgent values(status) AS status values(src_ip) AS src_ip by user +| where count > 10 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_excessive_authentication_failures_alert_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1110 +| Brute Force +| Credential Access +|} + + +====Kill Chain Phase==== + +* Not Applicable + + +====Known False Positives==== +The threshold for alert is above 10 attempts and this should reduce the number of false positives. + +====Reference==== + +* https://attack.mitre.org/techniques/T1110/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1110/o365_brute_force_login/o365_brute_force_login.json + + +''version'': 1 +
+
+ +---- + +===O365 excessive sso logon errors=== +This search detects accounts with high number of Single Sign ON (SSO) logon errors. Excessive logon errors may indicate attempts to bruteforce of password or single sign on token hijack or reuse. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1556/ T1556] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`o365_management_activity` Workload=AzureActiveDirectory LogonError=SsoArtifactInvalidOrExpired +| stats count min(_time) as firstTime max(_time) as lastTime by LogonError ActorIpAddress UserAgent UserId +| where count > 5 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_excessive_sso_logon_errors_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +Logon errors may not be malicious in nature however it may indicate attempts to reuse a token or password obtained via credential access attack. + +====Reference==== + +* https://stealthbits.com/blog/bypassing-mfa-with-pass-the-cookie/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1556/o365_sso_logon_errors/o365_sso_logon_errors.json + + +''version'': 1 +
+
+ +---- + +===O365 new federated domain added=== +This search detects the addition of a new Federated domain. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.003/ T1136.003] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== +`o365_management_activity` Workload=Exchange Operation="Add-FederatedDomain" +| stats count min(_time) as firstTime max(_time) as lastTime values(Parameters{}.Value) as Parameters.Value by ObjectId Operation OrganizationName OriginatingServer UserId UserKey +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `o365_new_federated_domain_added_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.003 +| Cloud Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +The creation of a new Federated domain is not necessarily malicious, however these events need to be followed closely, as it may indicate federated credential abuse or backdoor via federated identities at a similar or different cloud provider. + +====Reference==== + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + +* https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html + +* https://www.sygnia.co/golden-saml-advisory + +* https://o365blog.com/post/aadbackdoor/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.003/o365_new_federated_domain/o365_new_federated_domain.json + + +''version'': 1 +
+
+ +---- + +===O365 pst export alert=== +This search detects when a user has performed an Ediscovery search or exported a PST file from the search. This PST file usually has sensitive information including email body content + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114/ T1114] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Category=ThreatManagement Name="eDiscovery search started or exported" +| stats count earliest(_time) as firstTime latest(_time) as lastTime by Source Severity AlertEntityId Operation Name +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `o365_pst_export_alert_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== +You must install splunk Microsoft Office 365 add-on. This search works with o365:management:activity + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114 +| Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objective + + +====Known False Positives==== +PST export can be done for legitimate purposes but due to the sensitive nature of its content it must be monitored. + +====Reference==== + +* https://attack.mitre.org/techniques/T1114/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114/o365_export_pst_file/o365_export_pst_file.json + + +''version'': 1 +
+
+ +---- + +===O365 suspicious admin email forwarding=== +This search detects when an admin configured a forwarding rule for multiple mailboxes to the same destination. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.003/ T1114.003] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Operation=Set-Mailbox +| spath input=Parameters +| rename Identity AS src_user +| search ForwardingAddress=* +| stats dc(src_user) AS count_src_user earliest(_time) as firstTime latest(_time) as lastTime values(src_user) AS src_user values(user) AS user by ForwardingAddress +| where count_src_user > 1 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_admin_email_forwarding_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.003 +| Email Forwarding Rule +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.003/o365_email_forwarding_rule/o365_email_forwarding_rule.json + + +''version'': 1 +
+
+ +---- + +===O365 suspicious rights delegation=== +This search detects the assignment of rights to accesss content from another mailbox. This is usually only assigned to a service account. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.002/ T1114.002] +* '''Last Updated''': 2020-12-15 + +
+
+ +====Search==== +`o365_management_activity` Operation=Add-MailboxPermission +| spath input=Parameters +| rename User AS src_user, Identity AS dest_user +| search AccessRights=FullAccess OR AccessRights=SendAs OR AccessRights=SendOnBehalf +| stats count earliest(_time) as firstTime latest(_time) as lastTime by user src_user dest_user Operation AccessRights +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_rights_delegation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.002 +| Remote Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Service Accounts + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.002/suspicious_rights_delegation/suspicious_rights_delegation.json + + +''version'': 1 +
+
+ +---- + +===O365 suspicious user email forwarding=== +This search detects when multiple user configured a forwarding rule to the same destination. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.003/ T1114.003] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== +`o365_management_activity` Operation=Set-Mailbox +| spath input=Parameters +| rename Identity AS src_user +| search ForwardingSmtpAddress=* +| stats dc(src_user) AS count_src_user earliest(_time) as firstTime latest(_time) as lastTime values(src_user) AS src_user values(user) AS user by ForwardingSmtpAddress +| where count_src_user > 1 +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`o365_suspicious_user_email_forwarding_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Office_365_Detections|Office 365 Detections]] + + +====How To Implement==== + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.003 +| Email Forwarding Rule +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1114.003/o365_email_forwarding_rule/o365_email_forwarding_rule.json + + +''version'': 1 +
+
+ +---- + +===Aws detect attach to role policy=== +This search provides detection of an user attaching itself to a different role trust policy. This can be used for lateral movement and escalation of privileges. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-07-27 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` attach policy +| spath requestParameters.policyArn +| table sourceIPAddress user_access_key userIdentity.arn userIdentity.sessionContext.sessionIssuer.arn eventName errorCode errorMessage status action requestParameters.policyArn userIdentity.sessionContext.attributes.mfaAuthenticated userIdentity.sessionContext.attributes.creationDate +| `aws_detect_attach_to_role_policy_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cross_Account_Activity|AWS Cross Account Activity]] + + +====How To Implement==== +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Attach to policy can create a lot of noise. This search can be adjusted to provide specific values to identify cases of abuse (i.e status=failure). The search can provide context for common users attaching themselves to higher privilege policies or even newly created policies. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws detect permanent key creation=== +This search provides detection of accounts creating permanent keys. Permanent keys are not created by default and they are only needed for programmatic calls. Creation of Permanent key is an important event to monitor. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-07-27 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` CreateAccessKey +| spath eventName +| search eventName=CreateAccessKey "userIdentity.type"=IAMUser +| table sourceIPAddress userName userIdentity.type userAgent action status responseElements.accessKey.createDate responseElements.accessKey.status responseElements.accessKey.accessKeyId +|`aws_detect_permanent_key_creation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cross_Account_Activity|AWS Cross Account Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Not all permanent key creations are malicious. If there is a policy of rotating keys this search can be adjusted to provide better context. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws detect role creation=== +This search provides detection of role creation by IAM users. Role creation is an event by itself if user is creating a new role with trust policies different than the available in AWS and it can be used for lateral movement and escalation of privileges. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-07-27 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` event_name=CreateRole action=created userIdentity.type=AssumedRole requestParameters.description=Allows* +| table sourceIPAddress userIdentity.principalId userIdentity.arn action event_name awsRegion http_user_agent mfa_auth msg requestParameters.roleName requestParameters.description responseElements.role.arn responseElements.role.createDate +| `aws_detect_role_creation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cross_Account_Activity|AWS Cross Account Activity]] + + +====How To Implement==== +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +CreateRole is not very common in common users. This search can be adjusted to provide specific values to identify cases of abuse. In general AWS provides plenty of trust policies that fit most use cases. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws detect sts assume role abuse=== +This search provides detection of suspicious use of sts:AssumeRole. These tokens can be created on the go and used by attackers to move laterally and escalate privileges. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-07-27 + +
+
+ +====Search==== +`cloudtrail` user_type=AssumedRole userIdentity.sessionContext.sessionIssuer.type=Role +| table sourceIPAddress userIdentity.arn user_agent user_access_key status action requestParameters.roleName responseElements.role.roleName responseElements.role.createDate +| `aws_detect_sts_assume_role_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cross_Account_Activity|AWS Cross Account Activity]] + + +====How To Implement==== +You must install splunk AWS add on and Splunk App for AWS. This search works with cloudtrail logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sts:AssumeRole can be very noisy as it is a standard mechanism to provide cross account and cross resources access. This search can be adjusted to provide specific values to identify cases of abuse. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws detect sts get session token abuse=== +This search provides detection of suspicious use of sts:GetSessionToken. These tokens can be created on the go and used by attackers to move laterally and escalate privileges. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1550/ T1550] +* '''Last Updated''': 2020-07-27 + +
+
+ +====Search==== +`aws_cloudwatchlogs_eks` ASIA userIdentity.type=IAMUser +| spath eventName +| search eventName=GetSessionToken +| table sourceIPAddress eventTime userIdentity.arn userName userAgent user_type status region +| `aws_detect_sts_get_session_token_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cross_Account_Activity|AWS Cross Account Activity]] + + +====How To Implement==== +You must install splunk AWS add-on and Splunk App for AWS. This search works with cloudwatch logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1550 +| Use Alternate Authentication Material +| Defense Evasion, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +Sts:GetSessionToken can be very noisy as in certain environments numerous calls of this type can be executed. This search can be adjusted to provide specific values to identify cases of abuse. In specific environments the use of field requestParameters.serialNumber will need to be used. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Gcp detect oauth token abuse=== +This search provides detection of possible GCP Oauth token abuse. GCP Oauth token without time limit can be exfiltrated and reused for keeping access sessions alive without further control of authentication, allowing attackers to access and move laterally. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-09-01 + +
+
+ +====Search==== +`google_gcp_pubsub_message` type.googleapis.com/google.cloud.audit.AuditLog +|table protoPayload.@type protoPayload.status.details{}.@type protoPayload.status.details{}.violations{}.callerIp protoPayload.status.details{}.violations{}.type protoPayload.status.message +| `gcp_detect_oauth_token_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#GCP_Cross_Account_Activity|GCP Cross Account Activity]] + + +====How To Implement==== +You must install splunk GCP add-on. This search works with gcp:pubsub:message logs + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Known False Positives==== +GCP Oauth token abuse detection will only work if there are access policies in place along with audit logs. + +====Reference==== + +* https://www.netskope.com/blog/gcp-oauth-token-hijacking-in-google-cloud-part-1 + +* https://www.netskope.com/blog/gcp-oauth-token-hijacking-in-google-cloud-part-2 + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + + + +==Deprecated== + + +===Aws cloud provisioning from previously unseen city=== +This search looks for AWS provisioning activities from previously unseen cities. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-03-16 + +
+
+ +====Search==== +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search City=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search City=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by City +| eval newCity=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCity=1 +| table City] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, City, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_city_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Suspicious_Provisioning_Activities|AWS Suspicious Provisioning Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new city is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your city, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws cloud provisioning from previously unseen country=== +This search looks for AWS provisioning activities from previously unseen countries. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-03-16 + +
+
+ +====Search==== +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by Country +| eval newCountry=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCountry=1 +| table Country] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, Country, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_country_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Suspicious_Provisioning_Activities|AWS Suspicious Provisioning Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching over plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new country is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws cloud provisioning from previously unseen ip address=== +This search looks for AWS provisioning activities from previously unseen IP addresses. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-03-16 + +
+
+ +====Search==== +`cloudtrail` (eventName=Run* OR eventName=Create*) [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Country=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress +| eval newIP=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newIP=1 +| table sourceIPAddress] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_ip_address_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Suspicious_Provisioning_Activities|AWS Suspicious Provisioning Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new IP address is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your country, there should be few false positives. If you are located in countries where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Aws cloud provisioning from previously unseen region=== +This search looks for AWS provisioning activities from previously unseen regions. Region in this context is similar to a state in the United States. Provisioning activities are defined broadly as any event that begins with "Run" or "Create." This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-03-16 + +
+
+ +====Search==== +`cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Region=* [search `cloudtrail` (eventName=Run* OR eventName=Create*) +| iplocation sourceIPAddress +| search Region=* +| stats earliest(_time) as firstTime, latest(_time) as lastTime by sourceIPAddress, City, Region, Country +| inputlookup append=t previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by sourceIPAddress, City, Region, Country +| outputlookup previously_seen_provisioning_activity_src.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by Region +| eval newRegion=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newRegion=1 +| table Region] +| spath output=user userIdentity.arn +| rename sourceIPAddress as src_ip +| table _time, user, src_ip, Region, eventName, errorCode +| `aws_cloud_provisioning_from_previously_unseen_region_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Suspicious_Provisioning_Activities|AWS Suspicious Provisioning Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen AWS Provisioning Activity Sources" support search once to create a history of previously seen locations that have provisioned AWS resources. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +This is a strictly behavioral search, so we define "false positive" slightly differently. Every time this fires, it will accurately reflect the first occurrence in the time period you're searching within, plus what is stored in the cache feature. But while there are really no "false positives" in a traditional sense, there is definitely lots of noise.\ + This search will fire any time a new region is seen in the **GeoIP** database for any kind of provisioning activity. If you typically do all provisioning from tools inside of your region, there should be few false positives. If you are located in regions where the free version of **MaxMind GeoIP** that ships by default with Splunk has weak resolution (particularly small countries in less economically powerful regions), this may be much less valuable to you. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Abnormally high aws instances launched by user=== +This search looks for CloudTrail events where a user successfully launches an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=RunInstances errorCode=success +| bucket span=10m _time +| stats count AS instances_launched by _time userName +| eventstats avg(instances_launched) as total_launched_avg, stdev(instances_launched) as total_launched_stdev +| eval threshold_value = 4 +| eval isOutlier=if(instances_launched > total_launched_avg+(total_launched_stdev * threshold_value), 1, 0) +| search isOutlier=1 AND _time >= relative_time(now(), "-10m@m") +| eval num_standard_deviations_away = round(abs(instances_launched - total_launched_avg) / total_launched_stdev, 2) +| table _time, userName, instances_launched, num_standard_deviations_away, total_launched_avg, total_launched_stdev +| `abnormally_high_aws_instances_launched_by_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Abnormally high aws instances launched by user - mltk=== +This search looks for CloudTrail events where a user successfully launches an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=RunInstances errorCode=success `abnormally_high_aws_instances_launched_by_user___mltk_filter` +| bucket span=10m _time +| stats count as instances_launched by _time src_user +| apply ec2_excessive_runinstances_v1 +| rename "IsOutlier(instances_launched)" as isOutlier +| where isOutlier=1 + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Abnormally high aws instances terminated by user=== +This search looks for CloudTrail events where an abnormally high number of instances were successfully terminated by a user in a 10-minute window. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=TerminateInstances errorCode=success +| bucket span=10m _time +| stats count AS instances_terminated by _time userName +| eventstats avg(instances_terminated) as total_terminations_avg, stdev(instances_terminated) as total_terminations_stdev +| eval threshold_value = 4 +| eval isOutlier=if(instances_terminated > total_terminations_avg+(total_terminations_stdev * threshold_value), 1, 0) +| search isOutlier=1 AND _time >= relative_time(now(), "-10m@m") +| eval num_standard_deviations_away = round(abs(instances_terminated - total_terminations_avg) / total_terminations_stdev, 2) +|table _time, userName, instances_terminated, num_standard_deviations_away, total_terminations_avg, total_terminations_stdev +| `abnormally_high_aws_instances_terminated_by_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured with your AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify whether this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Abnormally high aws instances terminated by user - mltk=== +This search looks for CloudTrail events where a user successfully terminates an abnormally high number of instances. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=TerminateInstances errorCode=success `abnormally_high_aws_instances_terminated_by_user___mltk_filter` +| bucket span=10m _time +| stats count as instances_terminated by _time src_user +| apply ec2_excessive_terminateinstances_v1 +| rename "IsOutlier(instances_terminated)" as isOutlier +| where isOutlier=1 + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. The threshold value should be tuned to your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Many service accounts configured within an AWS infrastructure are known to exhibit this behavior. Please adjust the threshold values and filter out service accounts from the output. Always verify if this search alerted on a human user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Clients connecting to multiple dns servers=== +This search allows you to identify the endpoints that have connected to more than five DNS servers and made DNS Queries over the time frame of the search. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count, values(DNS.dest) AS dest dc(DNS.dest) as dest_count from datamodel=Network_Resolution where DNS.message_type=QUERY by DNS.src +| `drop_dm_object_name("Network_Resolution")` +|where dest_count > 5 +| `clients_connecting_to_multiple_dns_servers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DNS_Hijacking|DNS Hijacking]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Host_Redirection|Host Redirection]] + + +====How To Implement==== +This search requires that DNS data is being ingested and populating the `Network_Resolution` data model. This data can come from DNS logs or from solutions that parse network traffic for this data, such as Splunk Stream or Bro.\ +This search produces fields (`dest_count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** Distinct DNS Connections, **Field:** dest_count\ +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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +It's possible that an enterprise has more than five DNS servers that are configured in a round-robin rotation. Please customize the search, as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Cloud network access control list deleted=== +Enforcing network-access controls is one of the defensive mechanisms used by cloud administrators to restrict access to a cloud instance. After the attacker has gained control of the console by compromising an admin account, they can delete a network ACL and gain access to the instance from anywhere. This search will query the Change datamodel to detect users deleting network ACLs. Deprecated because it's a duplicate + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-09-08 + +
+
+ +====Search==== +`cloudtrail` eventName=DeleteNetworkAcl +|rename userIdentity.arn as arn +| stats count min(_time) as firstTime max(_time) as lastTime values(errorMessage) values(errorCode) values(userAgent) values(userIdentity.*) by src userName arn eventName +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `cloud_network_access_control_list_deleted_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Network_ACL_Activity|Cloud Network ACL Activity]] + + +====How To Implement==== +You must be ingesting your cloud infrastructure logs from your cloud provider. You can also provide additional filtering for this search by customizing the `cloud_network_access_control_list_deleted_filter` macro. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that a user has legitimately deleted a network ACL. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Dns query requests resolved by unauthorized dns servers=== +This search will detect DNS requests resolved by unauthorized DNS servers. Legitimate DNS servers should be identified in the Enterprise Security Assets and Identity Framework. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.004/ T1071.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where DNS.dest_category != dns_server AND DNS.src_category != dns_server by DNS.src DNS.dest +| `drop_dm_object_name("DNS")` +| `dns_query_requests_resolved_by_unauthorized_dns_servers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DNS_Hijacking|DNS Hijacking]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Host_Redirection|Host Redirection]] + + +====How To Implement==== +To successfully implement this search you will need to ensure that DNS data is populating the Network_Resolution data model. It also requires that your DNS servers are identified correctly in the Assets and Identity table of Enterprise Security. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.004 +| DNS +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +Legitimate DNS activity can be detected in this search. Investigate, verify and update the list of authorized DNS servers as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Detect api activity from users without mfa=== +This search looks for CloudTrail events where a user logged into the AWS account, is making API calls and has not enabled Multi Factor authentication. Multi factor authentication adds a layer of security by forcing the users to type a unique authentication code from an approved authentication device when they access AWS websites or services. AWS Best Practices recommend that you enable MFA for privileged IAM users. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-05-17 + +
+
+ +====Search==== +`cloudtrail` userIdentity.sessionContext.attributes.mfaAuthenticated=false +| search NOT [ +| inputlookup aws_service_accounts +| fields identity +| rename identity as user] +| stats count min(_time) as firstTime max(_time) as lastTime values(eventName) as eventName by userIdentity.arn userIdentity.type user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_api_activity_from_users_without_mfa_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_User_Monitoring|AWS User Monitoring]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Leverage the support search `Create a list of approved AWS service accounts`: run it once every 30 days to create a list of service accounts and validate them.\ +This search produces fields (`eventName`,`userIdentity.type`,`userIdentity.arn`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** AWS User ARN, **Field:** userIdentity.arn\ +1. \ +1. **Label:** AWS User Type, **Field:** userIdentity.type\ +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` + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +Many service accounts configured within an AWS infrastructure do not have multi factor authentication enabled. Please ignore the service accounts, if triggered and instead add them to the aws_service_accounts.csv file to fine tune the detection. It is also possible that the search detects users in your environment using Single Sign-On systems, since the MFA is not handled by AWS. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect aws api activities from unapproved accounts=== +This search looks for successful CloudTrail activity by user accounts that are not listed in the identity table or `aws_service_accounts.csv`. It returns event names and count, as well as the first and last time a specific user or service is detected, grouped by users. Deprecated because managing this list can be quite hard. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` errorCode=success +| rename userName as identity +| search NOT [ +| inputlookup identity_lookup_expanded +| fields identity] +| search NOT [ +| inputlookup aws_service_accounts +| fields identity] +| rename identity as user +| stats count min(_time) as firstTime max(_time) as lastTime values(eventName) as eventName by user +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_aws_api_activities_from_unapproved_accounts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_User_Monitoring|AWS User Monitoring]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You must also populate the `identity_lookup_expanded` lookup shipped with the Asset and Identity framework to be able to look up users in your identity table in Enterprise Security (ES). Leverage the support search called "Create a list of approved AWS service accounts": run it once every 30 days to create and validate a list of service accounts.\ +This search produces fields (`eventName`,`firstTime`,`lastTime`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** First Time, **Field:** firstTime\ +1. \ +1. **Label:** Last Time, **Field:** lastTime\ +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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's likely that you'll find activity detected by users/service accounts that are not listed in the `identity_lookup_expanded` or ` aws_service_accounts.csv` file. If the user is a legitimate service account, update the `aws_service_accounts.csv` table with that entry. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect dns requests to phishing sites leveraging evilginx2=== +This search looks for DNS requests for phishing domains that are leveraging EvilGinx tools to mimic websites. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.003/ T1566.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(DNS.answer) as answer from datamodel=Network_Resolution.DNS by DNS.dest DNS.src DNS.query host +| `drop_dm_object_name(DNS)` +| rex field=query ".*?(?[^./:]+\.(\S{2,3} +|\S{2,3}.\S{2,3}))$" +| stats count values(query) as query by domain dest src answer +| search `evilginx_phishlets_amazon` OR `evilginx_phishlets_facebook` OR `evilginx_phishlets_github` OR `evilginx_phishlets_0365` OR `evilginx_phishlets_outlook` OR `evilginx_phishlets_aws` OR `evilginx_phishlets_google` +| search NOT [ inputlookup legit_domains.csv +| fields domain] +| join domain type=outer [ +| tstats count `security_content_summariesonly` values(Web.url) as url from datamodel=Web.Web by Web.dest Web.site +| rename "Web.*" as * +| rex field=site ".*?(?[^./:]+\.(\S{2,3} +|\S{2,3}.\S{2,3}))$" +| table dest domain url] +| table count src dest query answer domain url +| `detect_dns_requests_to_phishing_sites_leveraging_evilginx2_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Common_Phishing_Frameworks|Common Phishing Frameworks]] + + +====How To Implement==== +You need to ingest data from your DNS logs in the Network_Resolution datamodel. Specifically you must ingest the domain that is being queried and the IP of the host originating the request. Ideally, you should also be ingesting the answer to the query and the query type. This approach allows you to also create your own localized passive DNS capability which can aid you in future investigations. You will have to add legitimate domain names to the `legit_domains.csv` file shipped with the app. \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called `Lets Encrypt Domain Investigate` can be configured to run when any results are found by this detection search. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook link:`https://my.phantom.us/4.2/playbook/lets-encrypt-domain-investigate/`).\ + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.003 +| Spearphishing via Service +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + +* Command and Control + + +====Known False Positives==== +If a known good domain is not listed in the legit_domains.csv file, then the search could give you false postives. Please update that lookup file to filter out DNS requests to legitimate domains. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect long dns txt record response=== +This search is used to detect attempts to use DNS tunneling, by calculating the length of responses to DNS TXT queries. Endpoints using DNS as a method of transmission for data exfiltration, command and control, or evasion of security controls can often be detected by noting unusually large volumes of DNS traffic. Deprecated because this detection should focus on DNS queries instead of DNS responses. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Resolution where DNS.message_type=response AND DNS.record_type=TXT by DNS.src DNS.dest DNS.answer DNS.record_type +| `drop_dm_object_name("DNS")` +| eval anslen=len(answer) +| search anslen>100 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename src as "Source IP", dest as "Destination IP", answer as "DNS Answer" anslen as "Answer Length" record_type as "DNS Record Type" firstTime as "First Time" lastTime as "Last Time" count as Count +| table "Source IP" "Destination IP" "DNS Answer" "DNS Record Type" "Answer Length" Count "First Time" "Last Time" +| `detect_long_dns_txt_record_response_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +To successfully implement this search you need to ingest data from your DNS logs, or monitor DNS traffic using Stream, Bro or something similar. Specifically, this query requires that the DNS data model is populated with information regarding the DNS record type that is being returned as well as the data in the answer section of the protocol. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +It's possible that legitimate TXT record responses can be long enough to trigger this search. You can modify the packet threshold for this search to help mitigate false positives. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect mimikatz using loaded images=== +This search looks for reading loaded Images unique to credential dumping with Mimikatz. Deprecated because mimikatz libraries changed and very noisy sysmon Event Code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-12-03 + +
+
+ +====Search==== +`sysmon` EventCode=7 +| stats values(ImageLoaded) as ImageLoaded values(ProcessId) as ProcessId by Computer, Image +| search ImageLoaded=*WinSCard.dll ImageLoaded=*cryptdll.dll ImageLoaded=*hid.dll ImageLoaded=*samlib.dll ImageLoaded=*vaultcli.dll +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mimikatz_using_loaded_images_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + +* [[Documentation:ESSOC:stories:UseCase#Detect_Zerologon_Attack|Detect Zerologon Attack]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +This search needs Sysmon Logs and a sysmon configuration, which includes EventCode 7 with powershell.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Other tools can import the same DLLs. These tools should be part of a whitelist. + +====Reference==== + +* https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for.html + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect mimikatz via powershell and eventcode 4703=== +This search looks for PowerShell requesting privileges consistent with credential dumping. Deprecated, looks like things changed from a logging perspective. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-02-27 + +
+
+ +====Search==== +`wineventlog_security` signature_id=4703 Process_Name=*powershell.exe +| rex field=Message "Enabled Privileges:\s+(?\w+)\s+Disabled Privileges:" +| where privs="SeDebugPrivilege" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, Process_Name, privs, Process_ID, Message +| rename privs as "Enabled Privilege" +| rename Process_Name as process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mimikatz_via_powershell_and_eventcode_4703_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must be ingesting Windows Security logs. You must also enable the account change auditing here: http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata. Additionally, this search requires you to enable your Group Management Audit Logs in your Local Windows Security Policy and to be ingesting those logs. More information on how to enable them can be found here: http://whatevernetworks.com/auditing-group-membership-changes-in-active-directory/. Finally, please make sure that the local administrator group name is "Administrators" to be able to look for the right group membership changes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The activity may be legitimate. PowerShell is often used by administrators to perform various tasks, and it's possible this event could be generated in those cases. In these cases, false positives should be fairly obvious and you may need to tweak the search to eliminate noise. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect spike in aws api activity=== +This search will detect users creating spikes of API activity in your AWS environment. It will also update the cache file that factors in the latest data. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventType=AwsApiCall [search `cloudtrail` eventType=AwsApiCall +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup api_call_by_user_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup api_call_by_user_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventName, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_aws_api_activity_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_User_Monitoring|AWS User Monitoring]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike.\ +This search produces fields (`eventName`,`numberOfApiCalls`,`uniqueApisCalled`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** AWS Event Name, **Field:** eventName\ +1. \ +1. **Label:** Number of API Calls, **Field:** numberOfApiCalls\ +1. \ +1. **Label:** Unique API Calls, **Field:** uniqueApisCalled\ +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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== + + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect spike in network acl activity=== +This search will detect users creating spikes in API activity related to network access-control lists (ACLs)in your AWS environment. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.007/ T1562.007] +* '''Last Updated''': 2018-05-21 + +
+
+ +====Search==== +`cloudtrail` `network_acl_events` [search `cloudtrail` `network_acl_events` +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup network_acl_activity_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup network_acl_activity_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventNames, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_network_acl_activity_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Network_ACL_Activity|AWS Network ACL Activity]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike. This search works best when you run the "Baseline of Network ACL Activity by ARN" support search once to create a lookup file of previously seen Network ACL Activity. To add or remove API event names related to network ACLs, edit the macro `network_acl_events`. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The false-positive rate may vary based on the values of`dataPointThreshold` and `deviationThreshold`. Please modify this according the your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect spike in security group activity=== +This search will detect users creating spikes in API activity related to security groups in your AWS environment. It will also update the cache file that factors in the latest data. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2018-04-18 + +
+
+ +====Search==== +`cloudtrail` `security_group_api_calls` [search `cloudtrail` `security_group_api_calls` +| spath output=arn path=userIdentity.arn +| stats count as apiCalls by arn +| inputlookup security_group_activity_baseline append=t +| fields - latestCount +| stats values(*) as * by arn +| rename apiCalls as latestCount +| eval newAvgApiCalls=avgApiCalls + (latestCount-avgApiCalls)/720 +| eval newStdevApiCalls=sqrt(((pow(stdevApiCalls, 2)*719 + (latestCount-newAvgApiCalls)*(latestCount-avgApiCalls))/720)) +| eval avgApiCalls=coalesce(newAvgApiCalls, avgApiCalls), stdevApiCalls=coalesce(newStdevApiCalls, stdevApiCalls), numDataPoints=if(isnull(latestCount), numDataPoints, numDataPoints+1) +| table arn, latestCount, numDataPoints, avgApiCalls, stdevApiCalls +| outputlookup security_group_activity_baseline +| eval dataPointThreshold = 15, deviationThreshold = 3 +| eval isSpike=if((latestCount > avgApiCalls+deviationThreshold*stdevApiCalls) AND numDataPoints > dataPointThreshold, 1, 0) +| where isSpike=1 +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=user userIdentity.arn +| stats values(eventName) as eventNames, count as numberOfApiCalls, dc(eventName) as uniqueApisCalled by user +| `detect_spike_in_security_group_activity_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_User_Monitoring|AWS User Monitoring]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. You can modify `dataPointThreshold` and `deviationThreshold` to better fit your environment. The `dataPointThreshold` variable is the minimum number of data points required to have a statistically significant amount of data to determine. The `deviationThreshold` variable is the number of standard deviations away from the mean that the value must be to be considered a spike.This search works best when you run the "Baseline of Security Group Activity by ARN" support search once to create a history of previously seen Security Group Activity. To add or remove API event names for security groups, edit the macro `security_group_api_calls`. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Based on the values of`dataPointThreshold` and `deviationThreshold`, the false positive rate may vary. Please modify this according the your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect usb device insertion=== +The search is used to detect hosts that generate Windows Event ID 4663 for successful attempts to write to or read from a removable storage and Event ID 4656 for failures, which occurs when a USB drive is plugged in. In this scenario we are querying the Change_Analysis data model to look for Windows Event ID 4656 or 4663 where the priority of the affected host is marked as high in the ES Assets and Identity Framework. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change_Analysis +* '''ATT&CK''': +* '''Last Updated''': 2017-11-27 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count earliest(_time) AS earliest latest(_time) AS latest from datamodel=Change_Analysis where (nodename = All_Changes) All_Changes.result="Removable Storage device" (All_Changes.result_id=4663 OR All_Changes.result_id=4656) (All_Changes.src_priority=high) by All_Changes.dest +| `drop_dm_object_name("All_Changes")` +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `detect_usb_device_insertion_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Data_Protection|Data Protection]] + + +====How To Implement==== +To successfully implement this search, you must ingest Windows Security Event logs and track event code 4663 and 4656. Ensure that the field from the event logs is being mapped to the result_id field in the Change_Analysis data model. To minimize the alert volume, this search leverages the Assets and Identity framework to filter out events from those assets not marked high priority in the Enterprise Security Assets and Identity Framework. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +Legitimate USB activity will also be detected. Please verify and investigate as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect new api calls from user roles=== +This search detects new API calls that have either never been seen before or that have not been seen in the previous hour, where the identity type is `AssumedRole`. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2018-04-16 + +
+
+ +====Search==== +`cloudtrail` eventType=AwsApiCall errorCode=success userIdentity.type=AssumedRole [search `cloudtrail` eventType=AwsApiCall errorCode=success userIdentity.type=AssumedRole +| stats earliest(_time) as earliest latest(_time) as latest by userName eventName +| inputlookup append=t previously_seen_api_calls_from_user_roles +| stats min(earliest) as earliest, max(latest) as latest by userName eventName +| outputlookup previously_seen_api_calls_from_user_roles +| eval newApiCallfromUserRole=if(earliest>=relative_time(now(), "-70m@m"), 1, 0) +| where newApiCallfromUserRole=1 +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| table eventName userName] +|rename userName as user +| stats values(eventName) earliest(_time) as earliest latest(_time) as latest by user +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| `detect_new_api_calls_from_user_roles_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_User_Monitoring|AWS User Monitoring]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously seen API call per user roles in CloudTrail" support search once to create a history of previously seen user roles. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that there are legitimate user roles making new or infrequently used API calls in your infrastructure, causing the search to trigger. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect new user aws console login=== +This search looks for CloudTrail events wherein a console login event by a user was recorded within the last hour, then compares the event to a lookup file of previously seen users (by ARN values) who have logged into the console. The alert is fired if the user has logged into the console for the first time within the last hour. Deprecated now this search is updated to use the Authentication datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=ConsoleLogin +| rename userIdentity.arn as user +| stats earliest(_time) as firstTime latest(_time) as lastTime by user +| inputlookup append=t previously_seen_users_console_logins_cloudtrail +| stats min(firstTime) as firstTime max(lastTime) as lastTime by user +| eval userStatus=if(firstTime >= relative_time(now(), "-70m@m"), "First Time Logging into AWS Console","Previously Seen User") +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| where userStatus ="First Time Logging into AWS Console" +| `detect_new_user_aws_console_login_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_Login_Activities|Suspicious AWS Login Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Run the "Previously seen users in CloudTrail" support search only once to create a baseline of previously seen IAM users within the last 30 days. Run "Update previously seen users in CloudTrail" hourly (or more frequently depending on how often you run the detection searches) to refresh the baselines. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +When a legitimate new user logins for the first time, this activity will be detected. Check how old the account is and verify that the user activity is legitimate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect web traffic to dynamic domain providers=== +This search looks for web connections to dynamic DNS providers. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Web.url) as url min(_time) as firstTime from datamodel=Web where Web.status=200 by Web.src Web.dest Web.status +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `dynamic_dns_web_traffic` +| `detect_web_traffic_to_dynamic_domain_providers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Dynamic_DNS|Dynamic DNS]] + + +====How To Implement==== +This search requires you to be ingesting web-traffic logs. You can obtain these logs from indexing data from a web proxy or by using a network-traffic-analysis tool, such as Bro or Splunk Stream. The web data model must contain the URL being requested, the IP address of the host initiating the request, and the destination IP. This search also leverages a lookup file, `dynamic_dns_providers_default.csv`, which contains a non-exhaustive list of dynamic DNS providers. Consider periodically updating this local lookup file with new domains.\ +This search produces fields (`isDynDNS`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **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` Deprecated because duplicate. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +It is possible that list of dynamic DNS providers is outdated and/or that the URL being requested is legitimate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detection of dns tunnels=== +This search is used to detect DNS tunneling, by calculating the sum of the length of DNS queries and DNS answers. The search also filters out potential false positives by filtering out queries made to internal systems and the queries originating from internal DNS, Web, and Email servers. Endpoints using DNS as a method of transmission for data exfiltration, command and control, or evasion of security controls can often be detected by noting an unusually large volume of DNS traffic. Deprecated because existing detection is doing the same. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003] +* '''Last Updated''': 2017-09-18 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` dc("DNS.query") as count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" NOT (`cim_corporate_web_domain_search("DNS.query")`) NOT "DNS.query"="*.in-addr.arpa" NOT ("DNS.src_category"="svc_infra_dns" OR "DNS.src_category"="svc_infra_webproxy" OR "DNS.src_category"="svc_infra_email*" ) by "DNS.src","DNS.query" +| rename "DNS.src" as src "DNS.query" as message +| eval length=len(message) +| stats sum(length) as length by src +| append [ tstats `security_content_summariesonly` dc("DNS.answer") as count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" NOT (`cim_corporate_web_domain_search("DNS.query")`) NOT "DNS.query"="*.in-addr.arpa" NOT ("DNS.src_category"="svc_infra_dns" OR "DNS.src_category"="svc_infra_webproxy" OR "DNS.src_category"="svc_infra_email*" ) by "DNS.src","DNS.answer" +| rename "DNS.src" as src "DNS.answer" as message +| eval message=if(message=="unknown","", message) +| eval length=len(message) +| stats sum(length) as length by src ] +| stats sum(length) as length by src +| where length > 10000 +| `detection_of_dns_tunnels_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Data_Protection|Data Protection]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +To successfully implement this search, we must ensure that DNS data is being ingested and mapped to the appropriate fields in the Network_Resolution data model. Fields like src_category are automatically provided by the Assets and Identity Framework shipped with Splunk Enterprise Security. You will need to ensure you are using the Assets and Identity Framework and populating the src_category field. You will also need to enable the `cim_corporate_web_domain_search()` macro which will essentially filter out the DNS queries made to the corporate web domains to reduce alert fatigue. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +It's possible that normal DNS traffic will exhibit this behavior. If an alert is generated, please investigate and validate as appropriate. The threshold can also be modified to better suit your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Ec2 instance modified with previously unseen user=== +This search looks for EC2 instances being modified by users who have not previously modified them. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` `ec2_modification_api_calls` [search `cloudtrail` `ec2_modification_api_calls` errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by userIdentity.arn +| rename userIdentity.arn as arn +| inputlookup append=t previously_seen_ec2_modifications_by_user +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by arn +| outputlookup previously_seen_ec2_modifications_by_user +| eval newUser=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newUser=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename arn as userIdentity.arn +| table userIdentity.arn] +| spath output=dest responseElements.instancesSet.items{}.instanceId +| spath output=user userIdentity.arn +| table _time, user, dest +| `ec2_instance_modified_with_previously_unseen_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Unusual_AWS_EC2_Modifications|Unusual AWS EC2 Modifications]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Launches By User" support search once to create a history of previously seen ARNs. To add or remove APIs that modify an EC2 instance, edit the macro `ec2_modification_api_calls`. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It's possible that a new user will start to modify EC2 instances when they haven't before for any number of reasons. Verify with the user that is modifying instances that this is the intended behavior. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Ec2 instance started in previously unseen region=== +This search looks for CloudTrail events where an instance is started in a particular region in the last one hour and then compares it to a lookup file of previously seen regions where an instance was started + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-02-23 + +
+
+ +====Search==== +`cloudtrail` earliest=-1h StartInstances +| stats earliest(_time) as earliest latest(_time) as latest by awsRegion +| inputlookup append=t previously_seen_aws_regions.csv +| stats min(earliest) as earliest max(latest) as latest by awsRegion +| outputlookup previously_seen_aws_regions.csv +| eval regionStatus=if(earliest >= relative_time(now(),"-1d@d"), "Instance Started in a New Region","Previously Seen Region") +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| where regionStatus="Instance Started in a New Region" +| `ec2_instance_started_in_previously_unseen_region_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. Run the "Previously seen AWS Regions" support search only once to create of baseline of previously seen regions. This search is deprecated and have been translated to use the latest Change Datamodel. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that a user has unknowingly started an instance in a new region. Please verify that this activity is legitimate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Ec2 instance started with previously unseen ami=== +This search looks for EC2 instances being created with previously unseen AMIs. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-03-12 + +
+
+ +====Search==== +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by requestParameters.instancesSet.items{}.imageId +| rename requestParameters.instancesSet.items{}.imageId as amiID +| inputlookup append=t previously_seen_ec2_amis.csv +| stats min(firstTime) as firstTime max(lastTime) as lastTime by amiID +| outputlookup previously_seen_ec2_amis.csv +| eval newAMI=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| where newAMI=1 +| rename amiID as requestParameters.instancesSet.items{}.imageId +| table requestParameters.instancesSet.items{}.imageId] +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest, userIdentity.arn as arn, requestParameters.instancesSet.items{}.imageId as amiID +| table firstTime, lastTime, arn, amiID, dest, instanceType +| `ec2_instance_started_with_previously_unseen_ami_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 AMIs" support search once to create a history of previously seen AMIs. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +After a new AMI is created, the first systems created with that AMI will cause this alert to fire. Verify that the AMI being used was created by a legitimate user. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Ec2 instance started with previously unseen instance type=== +This search looks for EC2 instances being created with previously unseen instance types. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-02-07 + +
+
+ +====Search==== +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| fillnull value="m1.small" requestParameters.instanceType +| stats earliest(_time) as earliest latest(_time) as latest by requestParameters.instanceType +| rename requestParameters.instanceType as instanceType +| inputlookup append=t previously_seen_ec2_instance_types.csv +| stats min(earliest) as earliest max(latest) as latest by instanceType +| outputlookup previously_seen_ec2_instance_types.csv +| eval newType=if(earliest >= relative_time(now(), "-70m@m"), 1, 0) +| `security_content_ctime(earliest)` +| `security_content_ctime(latest)` +| where newType=1 +| rename instanceType as requestParameters.instanceType +| table requestParameters.instanceType] +| spath output=user userIdentity.arn +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest +| table _time, user, dest, instanceType +| `ec2_instance_started_with_previously_unseen_instance_type_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Instance Types" support search once to create a history of previously seen instance types. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that an admin will create a new system using a new instance type never used before. Verify with the creator that they intended to create the system with the new instance type. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Ec2 instance started with previously unseen user=== +This search looks for EC2 instances being created by users who have not created them before. This search is deprecated and have been translated to use the latest Change Datamodel. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`cloudtrail` eventName=RunInstances [search `cloudtrail` eventName=RunInstances errorCode=success +| stats earliest(_time) as firstTime latest(_time) as lastTime by userIdentity.arn +| rename userIdentity.arn as arn +| inputlookup append=t previously_seen_ec2_launches_by_user.csv +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by arn +| outputlookup previously_seen_ec2_launches_by_user.csv +| eval newUser=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newUser=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename arn as userIdentity.arn +| table userIdentity.arn] +| rename requestParameters.instanceType as instanceType, responseElements.instancesSet.items{}.instanceId as dest, userIdentity.arn as user +| table _time, user, dest, instanceType +| `ec2_instance_started_with_previously_unseen_user_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#AWS_Cryptomining|AWS Cryptomining]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_AWS_EC2_Activities|Suspicious AWS EC2 Activities]] + + +====How To Implement==== +You must install the AWS App for Splunk (version 5.1.0 or later) and Splunk Add-on for AWS (version 4.4.0 or later), then configure your CloudTrail inputs. This search works best when you run the "Previously Seen EC2 Launches By User" support search once to create a history of previously seen ARNs. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It's possible that a user will start to create EC2 instances when they haven't before for any number of reasons. Verify with the user that is launching instances that this is the intended behavior. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Execution of file with spaces before extension=== +This search looks for processes launched from files with at least five spaces in the name before the extension. This is typically done to obfuscate the file extension by pushing it outside of the default view. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2020-11-19 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_path) as process_path min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process = "* .*" by Processes.dest Processes.user Processes.process Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `execution_of_file_with_spaces_before_extension_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_File_Extension_and_Association_Abuse|Windows File Extension and Association Abuse]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Extended period without successful netbackup backups=== +This search returns a list of hosts that have not successfully completed a backup in over a week. Deprecated because it's a infrastructure monitoring. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-09-12 + +
+
+ +====Search==== +`netbackup` MESSAGE="Disk/Partition backup completed successfully." +| stats latest(_time) as latestTime by COMPUTERNAME +| `security_content_ctime(latestTime)` +| rename COMPUTERNAME as dest +| eval isOutlier=if(latestTime <= relative_time(now(), "-7d@d"), 1, 0) +| search isOutlier=1 +| table latestTime, dest +| `extended_period_without_successful_netbackup_backups_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Monitor_Backup_Solution|Monitor Backup Solution]] + + +====How To Implement==== +To successfully implement this search you need to first obtain data from your backup solution, either from the backup logs on your hosts, or from a central server responsible for performing the backups. If you do not use Netbackup, you can modify this search for your backup solution. Depending on how often you backup your systems, you may want to modify how far in the past to look for a successful backup, other than the default of seven days. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===First time seen command line argument=== +This search looks for command-line arguments that use a `/c` parameter to execute a command that has not previously been seen. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = cmd.exe Processes.process = "* /c *" by Processes.process Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats `security_content_summariesonly` earliest(_time) as firstTime latest(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = cmd.exe Processes.process = "* /c *" by Processes.process +| `drop_dm_object_name(Processes)` +| inputlookup append=t previously_seen_cmd_line_arguments +| stats min(firstTime) as firstTime, max(lastTime) as lastTime by process +| outputlookup previously_seen_cmd_line_arguments +| eval newCmdLineArgument=if(firstTime >= relative_time(now(), "-70m@m"), 1, 0) +| where newCmdLineArgument=1 +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table process] +| `first_time_seen_command_line_argument_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + +* [[Documentation:ESSOC:stories:UseCase#Orangeworm_Attack_Group|Orangeworm Attack Group]] + +* [[Documentation:ESSOC:stories:UseCase#Possible_Backdoor_Activity_Associated_With_MUDCARP_Espionage_Campaigns|Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns]] + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must be ingesting logs with both the process name and command line from your endpoints. The complete process name with command-line arguments are mapped to the "process" field in the Endpoint data model. Please make sure you run the support search "Previously seen command line arguments,"—which creates a lookup file called `previously_seen_cmd_line_arguments.csv`—a historical baseline of all command-line arguments. You must also validate this list. For the search to do accurate calculation, ensure the search scheduling is the same value as the `relative_time` evaluation function. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Legitimate programs can also use command-line arguments to execute. Please verify the command-line arguments to check what command/program is being executed. We recommend customizing the `first_time_seen_cmd_line_filter` macro to exclude legitimate parent_process_name + +====Reference==== + + +====Test Dataset==== + + +''version'': 5 +
+
+ +---- + +===Gcp gcr container uploaded=== +This search show information on uploaded containers including source user, account, action, bucket name event name, http user agent, message and destination path. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1525/ T1525] +* '''Last Updated''': 2020-02-20 + +
+
+ +====Search==== + +|tstats count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Cloud_Infrastructure.Storage where Storage.event_name=storage.objects.create by Storage.src_user Storage.account Storage.action Storage.bucket_name Storage.event_name Storage.http_user_agent Storage.msg Storage.object_path +| `drop_dm_object_name("Storage")` +| `gcp_gcr_container_uploaded_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Container_Implantation_Monitoring_and_Investigation|Container Implantation Monitoring and Investigation]] + + +====How To Implement==== +You must install the GCP App for Splunk (version 2.0.0 or later), then configure stackdriver and set a subpub subscription to be imported to Splunk. You must also install Cloud Infrastructure data model. Please also customize the `container_implant_gcp_detection_filter` macro to filter out the false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1525 +| Implant Container Image +| Persistence +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Uploading container is a normal behavior from developers or users with access to container registry. GCP GCR registers container upload as a Storage event, this search must be considered under the context of CONTAINER upload creation which automatically generates a bucket entry for destination path. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Identify new user accounts=== +This detection search will help profile user accounts in your environment by identifying newly created accounts that have been added to your network in the past week. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.002/ T1078.002] +* '''Last Updated''': 2017-09-12 + +
+
+ +====Search==== + +| from datamodel Identity_Management.All_Identities +| eval empStatus=case((now()-startDate)<604800, "Accounts created in last week") +| search empStatus="Accounts created in last week" +| `security_content_ctime(endDate)` +| `security_content_ctime(startDate)` +| table identity empStatus endDate startDate +| `identify_new_user_accounts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Account_Monitoring_and_Controls|Account Monitoring and Controls]] + + +====How To Implement==== +To successfully implement this search, you need to be populating the Enterprise Security Identity_Management data model in the assets and identity framework. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.002 +| Domain Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +If the Identity_Management data model is not updated regularly, this search could give you false positive alerts. Please consider this and investigate appropriately. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Malicious powershell process - multiple suspicious command-line arguments=== +This search looks for PowerShell processes started with a base64 encoded command-line passed to it, with parameters to modify the execution policy for the process, and those that prevent the display of an interactive prompt to the user. This combination of command-line options is suspicious because it overrides the default PowerShell execution policy, attempts to hide itself from the user, and passes an encoded script to be run on the command-line. Deprecated because almost the same as Malicious PowerShell Process - Encoded Command + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001] +* '''Last Updated''': 2021-01-19 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search (process=*-EncodedCommand* OR process=*-enc*) process=*-Exec* +| `malicious_powershell_process___multiple_suspicious_command_line_arguments_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Malicious_PowerShell|Malicious PowerShell]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Legitimate process can have this combination of command-line options, but it's not common. + +====Reference==== + + +====Test Dataset==== + + +''version'': 6 +
+
+ +---- + +===Monitor dns for brand abuse=== +This search looks for DNS requests for faux domains similar to the domains that you want to have monitored for abuse. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': +* '''Last Updated''': 2017-09-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(DNS.answer) as IPs min(_time) as firstTime from datamodel=Network_Resolution by DNS.src, DNS.query +| `drop_dm_object_name("DNS")` +| `security_content_ctime(firstTime)` +| `brand_abuse_dns` +| `monitor_dns_for_brand_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Brand_Monitoring|Brand Monitoring]] + + +====How To Implement==== +You need to ingest data from your DNS logs. Specifically you must ingest the domain that is being queried and the IP of the host originating the request. Ideally, you should also be ingesting the answer to the query and the query type. This approach allows you to also create your own localized passive DNS capability which can aid you in future investigations. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +None at this time + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Open redirect in splunk web=== +This search allows you to look for evidence of exploitation for CVE-2016-4859, the Splunk Open Redirect Vulnerability. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-09-19 + +
+
+ +====Search==== +index=_internal sourcetype=splunk_web_access return_to="/%09/*" +| `open_redirect_in_splunk_web_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Splunk_Enterprise_Vulnerability|Splunk Enterprise Vulnerability]] + + +====How To Implement==== +No extra steps needed to implement this search. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Osquery pack - coldroot detection=== +This search looks for ColdRoot events from the osx-attacks osquery pack. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2019-01-29 + +
+
+ +====Search==== + +| from datamodel Alerts.Alerts +| search app=osquery:results (name=pack_osx-attacks_OSX_ColdRoot_RAT_Launchd OR name=pack_osx-attacks_OSX_ColdRoot_RAT_Files) +| rename columns.path as path +| bucket _time span=30s +| stats count(path) by _time, host, user, path +| `osquery_pack___coldroot_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#ColdRoot_MacOS_RAT|ColdRoot MacOS RAT]] + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest data from your osquery deployed agents with the [osx-attacks.conf](https://github.com/facebook/osquery/blob/experimental/packs/osx-attacks.conf#L599) pack enabled. Also the [TA-OSquery](https://github.com/d1vious/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the osquery data populate the Alerts data model + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + +* Command and Control + + +====Known False Positives==== +There are no known false positives. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Processes created by netsh=== +This search looks for processes launching netsh.exe to execute various commands via the netsh command-line utility. Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh can be used as a persistence proxy technique to execute a helper .dll when netsh.exe is executed. In this search, we are looking for processes spawned by netsh.exe that are executing commands via the command line. Deprecated because we have another detection of the same type. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.004/ T1562.004] +* '''Last Updated''': 2020-11-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=netsh.exe by Processes.user Processes.dest Processes.parent_process Processes.parent_process_name Processes.process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `processes_created_by_netsh_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Netsh_Abuse|Netsh Abuse]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting logs with the process name, command-line arguments, and parent processes from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.004 +| Disable or Modify System Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It is unusual for netsh.exe to have any child processes in most environments. It makes sense to investigate the child process and verify whether the process spawned is legitimate. We explicitely exclude "C:\Program Files\rempl\sedlauncher.exe" process path since it is a legitimate process by Mircosoft. + +====Reference==== + + +====Test Dataset==== + + +''version'': 5 +
+
+ +---- + +===Prohibited software on endpoint=== +This search looks for applications on the endpoint that you have marked as prohibited. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2019-10-11 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.user Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `prohibited_softwares` +| `prohibited_software_on_endpoint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Monitor_for_Unauthorized_Software|Monitor for Unauthorized Software]] + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is usually generated via logs that report process tracking in your Windows audit settings. In addition, you must also have only the `process_name` (not the entire process path) marked as "prohibited" in the Enterprise Security `interesting processes` table. To include the process names marked as "prohibited", which is included with ES Content Updates, run the included search Add Prohibited Processes to Enterprise Security. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Reg exe used to hide files directories via registry keys=== +The search looks for command-line arguments used to hide a file or directory using the reg add command. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1564.001/ T1564.001] +* '''Last Updated''': 2019-02-27 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = reg.exe Processes.process="*add*" Processes.process="*Hidden*" Processes.process="*REG_DWORD*" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| regex process = "(/d\s+2)" +| `reg_exe_used_to_hide_files_directories_via_registry_keys_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Defense_Evasion_Tactics|Windows Defense Evasion Tactics]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1564.001 +| Hidden Files and Directories +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None at the moment + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Remote registry key modifications=== +This search monitors for remote modifications to registry keys. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-03-02 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name values(Registry.registry_path) as registry_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path="\\\\*" by Registry.dest , Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `remote_registry_key_modifications_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Defense_Evasion_Tactics|Windows Defense Evasion Tactics]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +To successfully implement this search, you must populate the `Endpoint` data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. Deprecated because I don't think the logic is right. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +This technique may be legitimately used by administrators to modify remote registries, so it's important to filter these events out. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Remote wmi command attempt=== +This search looks for wmic.exe being launched with parameters to operate on remote systems. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2018-12-03 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wmic.exe AND Processes.process= */node* by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `remote_wmi_command_attempt_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. Deprecated because duplicate of Remote Process Instantiation via WMI. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators may use this legitimately to gather info from remote systems. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Scheduled tasks used in badrabbit ransomware=== +This search looks for flags passed to schtasks.exe on the command-line that indicate that task names related to the execution of Bad Rabbit ransomware were created or deleted. Deprecated because we already have a similar detection + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process) as process from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe (Processes.process= "*create*" OR Processes.process= "*delete*") by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| search (process=*rhaegal* OR process=*drogon* OR *viserion_*) +| `scheduled_tasks_used_in_badrabbit_ransomware_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +No known false positives + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Splunk enterprise information disclosure=== +This search allows you to look for evidence of exploitation for CVE-2018-11409, a Splunk Enterprise Information Disclosure Bug. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-06-14 + +
+
+ +====Search==== +index=_internal sourcetype=splunkd_ui_access server-info +| search clientip!=127.0.0.1 uri_path="*raw/services/server/info/server-info" +| rename clientip as src_ip, splunk_server as dest +| stats earliest(_time) as firstTime, latest(_time) as lastTime, values(uri) as uri, values(useragent) as http_user_agent, values(user) as user by src_ip, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `splunk_enterprise_information_disclosure_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Splunk_Enterprise_Vulnerability_CVE-2018-11409|Splunk Enterprise Vulnerability CVE-2018-11409]] + + +====How To Implement==== +The REST endpoint that exposes system information is also necessary for the proper operation of Splunk clustering and instrumentation. Whitelisting your Splunk systems will reduce false positives. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +Retrieving server information may be a legitimate API request. Verify that the attempt is a valid request for information. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Suspicious changes to file associations=== +This search looks for changes to registry values that control Windows file associations, executed by a process that is not typical for legitimate, routine changes to this area. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.001/ T1546.001] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name FROM datamodel=Endpoint.Processes where Processes.process_name!=Explorer.exe AND Processes.process_name!=OpenWith.exe by Processes.process_id Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| join [ +| tstats `security_content_summariesonly` values(Registry.registry_path) as registry_path count FROM datamodel=Endpoint.Registry where Registry.registry_path=*\\Explorer\\FileExts* by Registry.process_id Registry.dest +| `drop_dm_object_name("Registry")` +| table process_id dest registry_path] +| `suspicious_changes_to_file_associations_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_File_Extension_and_Association_Abuse|Windows File Extension and Association Abuse]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on registry changes that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` and `Registry` nodes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.001 +| Change Default File Association +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +There may be other processes in your environment that users may legitimately use to modify file associations. If this is the case and you are finding false positives, you can modify the search to add those processes as exceptions. + +====Reference==== + + +====Test Dataset==== + + +''version'': 4 +
+
+ +---- + +===Suspicious file write=== +The search looks for files created with names that have been linked to malicious activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2019-04-25 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Filesystem.action) as action values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem by Filesystem.file_name Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Filesystem)` +| `suspicious_writes` +| `suspicious_file_write_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + + +====How To Implement==== +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file system reads and writes. In addition, this search leverages an included lookup file that contains the names of the files to watch for, as well as a note to communicate why that file name is being monitored. This lookup file can be edited to add or remove file the file names you want to monitor. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible for a legitimate file to be created with the same name as one noted in the lookup file. Filenames listed in the lookup file should be unique enough that collisions are rare. Looking at the location of the file and the process responsible for the activity can help determine whether or not the activity is legitimate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Suspicious writes to system volume information=== +This search detects writes to the 'System Volume Information' folder by something other than the System process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036/ T1036] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== +(`sysmon` OR tag=process) EventCode=11 process_id!=4 file_path=*System\ Volume\ Information* +| stats count min(_time) as firstTime max(_time) as lastTime by dest, Image, file_path +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_writes_to_system_volume_information_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Collection_and_Staging|Collection and Staging]] + + +====How To Implement==== +You need to be ingesting logs with both the process name and command-line from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036 +| Masquerading +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that other utilities or system processes may legitimately write to this folder. Investigate and modify the search to include exceptions as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Uncommon processes on endpoint=== +This search looks for applications on the endpoint that you have marked as uncommon. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.user Processes.process Processes.process_name +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `uncommon_processes` +|`uncommon_processes_on_endpoint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Privilege_Escalation|Windows Privilege Escalation]] + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. This search uses a lookup file `uncommon_processes_default.csv` to track various features of process names that are usually uncommon in most environments. Please consider updating `uncommon_processes_local.csv` to hunt for processes that are uncommon in your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 4 +
+
+ +---- + +===Unsigned image loaded by lsass=== +This search detects loading of unsigned images by LSASS. Deprecated because too noisy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-12-06 + +
+
+ +====Search==== +`sysmon` EventID=7 Image=*lsass.exe Signed=false +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, Image, ImageLoaded, Signed, SHA1 +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `unsigned_image_loaded_by_lsass_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +This search needs Sysmon Logs with a sysmon configuration, which includes EventCode 7 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Other tools could load images into LSASS for legitimate reason. But enterprise tools should always use signed DLLs. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Unsuccessful netbackup backups=== +This search gives you the hosts where a backup was attempted and then failed. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-09-12 + +
+
+ +====Search==== +`netbackup` +| stats latest(_time) as latestTime by COMPUTERNAME, MESSAGE +| search MESSAGE="An error occurred, failed to backup." +| `security_content_ctime(latestTime)` +| rename COMPUTERNAME as dest, MESSAGE as signature +| table latestTime, dest, signature +| `unsuccessful_netbackup_backups_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Monitor_Backup_Solution|Monitor Backup Solution]] + + +====How To Implement==== +To successfully implement this search you need to obtain data from your backup solution, either from the backup logs on your endpoints or from a central server responsible for performing the backups. If you do not use Netbackup, you can modify this search for your specific backup solution. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Windows disableantispyware registry=== +The search looks for the Registry Key DisableAntiSpyware set to disable. This is consistent with Ryuk infections across a fleet of endpoints. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.001/ T1562.001] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Registry where Registry.registry_key_name="DisableAntiSpyware" AND Registry.registry_value_name="DWORD (0x00000000)" by Registry.dest Registry.user Registry.registry_path Registry.registry_value_name +| `drop_dm_object_name(Registry)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `windows_disableantispyware_registry_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +It is unusual to turn this feature on a Windows system since it is a default security control, although it is not rare for some policies to disable it. Although no false positives have been identified, use the provided filter macro to tune the search. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Windows connhost exe started forcefully=== +The search looks for the Console Window Host process (connhost.exe) executed using the force flag -ForceV1. This is not regular behavior in the Windows OS and is often seen executed by the Ryuk Ransomware. DEPRECATED This event is actually seen in the windows 10 client of attack_range_local. After further testing we realized this is not specific to Ryuk. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes WHERE Processes.process="*C:\\Windows\\system32\\conhost.exe* 0xffffffff *-ForceV1*" by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_connhost_exe_started_forcefully_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +This process should not be ran forcefully, we have not see any false positives for this detection + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Windows hosts file modification=== +The search looks for modifications to the hosts file on all Windows endpoints across your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-11-02 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem by Filesystem.file_name Filesystem.file_path Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| search Filesystem.file_name=hosts AND Filesystem.file_path=*Windows\\System32\\* +| `drop_dm_object_name(Filesystem)` +| `windows_hosts_file_modification_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Host_Redirection|Host Redirection]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records the file-system activity from your hosts to populate the Endpoint.Filesystem data model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or by other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +There may be legitimate reasons for system administrators to add entries to this file. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + + + +==Endpoint== + + +===Access lsass memory for dump creation=== +Detect memory dumping of the LSASS process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-12-06 + +
+
+ +====Search==== +`sysmon` EventCode=10 TargetImage=*lsass.exe CallTrace=*dbgcore.dll* OR CallTrace=*dbghelp.dll* +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, TargetImage, TargetProcessId, SourceImage, SourceProcessId +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `access_lsass_memory_for_dump_creation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +This search requires Sysmon Logs and a Sysmon configuration, which includes EventCode 10 for lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators can create memory dumps for debugging purposes, but memory dumps of the LSASS process would be unusual. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Applying stolen credentials via mimikatz modules=== +This detection indicates use of Mimikatz modules that facilitate Pass-the-Token attack, Golden or Silver kerberos ticket attack, and Skeleton key attack. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1055/ T1055], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098], [https://attack.mitre.org/techniques/T1134/ T1134], [https://attack.mitre.org/techniques/T1543/ T1543], [https://attack.mitre.org/techniques/T1547/ T1547], [https://attack.mitre.org/techniques/T1548/ T1548], [https://attack.mitre.org/techniques/T1554/ T1554], [https://attack.mitre.org/techniques/T1556/ T1556], [https://attack.mitre.org/techniques/T1558/ T1558] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)kerberos::ptt/)=true OR match_regex(cmd_line, /(?i)kerberos::golden/)=true OR match_regex(cmd_line, /(?i)kerberos::silver/)=true OR match_regex(cmd_line, /(?i)misc::skeleton/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1055 +| Process Injection +| Defense Evasion, Privilege Escalation +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|- +| T1134 +| Access Token Manipulation +| Defense Evasion, Privilege Escalation +|- +| T1543 +| Create or Modify System Process +| Persistence, Privilege Escalation +|- +| T1547 +| Boot or Logon Autostart Execution +| Persistence, Privilege Escalation +|- +| T1548 +| Abuse Elevation Control Mechanism +| Defense Evasion, Privilege Escalation +|- +| T1554 +| Compromise Client Software Binary +| Persistence +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|- +| T1558 +| Steal or Forge Kerberos Tickets +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + +* https://adsecurity.org/?p=1275 + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Applying stolen credentials via powersploit modules=== +Stolen credentials are applied by methods such as user impersonation, credential injection, spoofing of authentication processes or getting hold of critical accounts. This detection indicates such activities carried out by PowerSploit exploit kit APIs. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1055/ T1055], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098], [https://attack.mitre.org/techniques/T1134/ T1134], [https://attack.mitre.org/techniques/T1543/ T1543], [https://attack.mitre.org/techniques/T1547/ T1547], [https://attack.mitre.org/techniques/T1548/ T1548], [https://attack.mitre.org/techniques/T1554/ T1554], [https://attack.mitre.org/techniques/T1556/ T1556], [https://attack.mitre.org/techniques/T1558/ T1558] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Invoke-CredentialInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-TokenManipulation/)=true OR match_regex(cmd_line, /(?i)Invoke-UserImpersonation/)=true OR match_regex(cmd_line, /(?i)Get-System/)=true OR match_regex(cmd_line, /(?i)Invoke-RevertToSelf/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1055 +| Process Injection +| Defense Evasion, Privilege Escalation +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|- +| T1134 +| Access Token Manipulation +| Defense Evasion, Privilege Escalation +|- +| T1543 +| Create or Modify System Process +| Persistence, Privilege Escalation +|- +| T1547 +| Boot or Logon Autostart Execution +| Persistence, Privilege Escalation +|- +| T1548 +| Abuse Elevation Control Mechanism +| Defense Evasion, Privilege Escalation +|- +| T1554 +| Compromise Client Software Binary +| Persistence +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|- +| T1558 +| Steal or Forge Kerberos Tickets +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Assessment of credential strength via dsinternals modules=== +This detection identifies use of DSInternals modules that verify password strength, i.e., identify week accounts that would be easily compromised. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098], [https://attack.mitre.org/techniques/T1087/ T1087], [https://attack.mitre.org/techniques/T1201/ T1201], [https://attack.mitre.org/techniques/T1552/ T1552], [https://attack.mitre.org/techniques/T1555/ T1555] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Test-PasswordQuality/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|- +| T1087 +| Account Discovery +| Discovery +|- +| T1201 +| Password Policy Discovery +| Discovery +|- +| T1552 +| Unsecured Credentials +| Credential Access +|- +| T1555 +| Credentials from Password Stores +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Attempt to add certificate to untrusted store=== +Attempt to add a certificate to the certificate store + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1553.004/ T1553.004] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=*certutil* (Processes.process=*-addstore*) by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `attempt_to_add_certificate_to_untrusted_store_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1553.004 +| Install Root Certificate +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +There may be legitimate reasons for administrators to add a certificate to the untrusted certificate store. In such cases, this will typically be done on a large number of systems. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1553.004/atomic_red_team/windows-sysmon.log + + +''version'': 6 +
+
+ +---- + +===Attempt to set default powershell execution policy to unrestricted or bypass=== +Monitor for changes of the ExecutionPolicy in the registry to the values "unrestricted" or "bypass," which allows the execution of malicious scripts. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Registry where Registry.registry_path=*Software\\Microsoft\\Powershell\\1\\ShellIds\\Microsoft.PowerShell* Registry.registry_key_name=ExecutionPolicy (Registry.registry_value_name=Unrestricted OR Registry.registry_value_name=Bypass) by Registry.registry_path Registry.registry_key_name Registry.registry_value_name Registry.dest +| `drop_dm_object_name(Registry)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `attempt_to_set_default_powershell_execution_policy_to_unrestricted_or_bypass_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Malicious_PowerShell|Malicious PowerShell]] + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Registry node. You must also be ingesting logs with the fields registry_path, registry_key_name, and registry_value_name from your endpoints. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +Administrators may attempt to change the default execution policy on a system for a variety of reasons. However, setting the policy to "unrestricted" or "bypass" as this search is designed to identify, would be unusual. Hits should be reviewed and investigated as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/powershell_execution_policy/windows-sysmon.log + + +''version'': 6 +
+
+ +---- + +===Attempt to stop security service=== +This search looks for attempts to stop security-related services on the endpoint. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.001/ T1562.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name = net.exe OR Processes.process_name = sc.exe) Processes.process="* stop *" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|lookup security_services_lookup service as process OUTPUTNEW category, description +| search category=security +| `attempt_to_stop_security_service_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + + +====How To Implement==== +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. The search is shipped with a lookup file, `security_services.csv`, that can be edited to update the list of services to monitor. This lookup file can be edited directly where it lives in `$SPLUNK_HOME/etc/apps/DA-ESS-ContentUpdate/lookups`, or via the Splunk console. You should add the names of services an attacker might use on the command line and surround with asterisks (*****), so that they work properly when searching the command line. The file should be updated with the names of any services you would like to monitor for attempts to stop the service., + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +None identified. Attempts to disable security-related services should be identified and understood. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Attempted credential dump from registry via reg exe=== +Monitor for execution of reg.exe with parameters specifying an export of keys that contain hashed credentials that attackers may try to crack offline. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.002/ T1003.002] +* '''Last Updated''': 2019-12-02 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=reg.exe OR Processes.process_name=cmd.exe) Processes.process=*save* (Processes.process=*HKEY_LOCAL_MACHINE\\Security* OR Processes.process=*HKEY_LOCAL_MACHINE\\SAM* OR Processes.process=*HKEY_LOCAL_MACHINE\\System* OR Processes.process=*HKLM\\Security* OR Processes.process=*HKLM\\System* OR Processes.process=*HKLM\\SAM*) by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `attempted_credential_dump_from_registry_via_reg_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.002 +| Security Account Manager +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.002/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Attempted credential dump from registry via reg exe=== +Monitor for execution of reg.exe with parameters specifying an export of keys that contain hashed credentials that attackers may try to crack offline. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-6-04 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) +| where process_name="cmd.exe" OR process_name="reg.exe" +| where cmd_line != null AND match_regex(cmd_line, /(?i)save\s+/)=true AND ( match_regex(cmd_line, /(?i)HKLM\\Security/)=true OR match_regex(cmd_line, /(?i)HKLM\\SAM/)=true OR match_regex(cmd_line, /(?i)HKLM\\System/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\Security/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\SAM/)=true OR match_regex(cmd_line, /(?i)HKEY_LOCAL_MACHINE\\System/)=true ) +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting windows endpoint data that tracks process activity, including parent-child relationships from your endpoints. + +====Required field==== + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/splunk/security_content/blob/55a17c65f9f56c2220000b62701765422b46125d/detections/attempted_credential_dump_from_registry_via_reg_exe.yml + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Bcdedit failure recovery modification=== +This search looks for flags passed to bcdedit.exe modifications to the built-in Windows error recovery boot configurations. This is typically used by ransomware to prevent recovery. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490] +* '''Last Updated''': 2020-12-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = bcdedit.exe Processes.process="*recoveryenabled*" (Processes.process="* no*") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `bcdedit_failure_recovery_modification_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. Tune based on parent process names. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators may modify the boot configuration. + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1490/T1490.md#atomic-test-4---windows---disable-windows-recovery-console-repair + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Batch file write to system32=== +The search looks for a batch file (.bat) written to the Windows system directory tree. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2018-12-14 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name values(Filesystem.user) as user from datamodel=Endpoint.Filesystem by Filesystem.file_path +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| search file_path=*system32* AND file_extension=.bat +| `batch_file_write_to_system32_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +It is possible for this search to generate a notable event for a batch file write to a path that includes the string "system32", but is not the actual Windows system directory. As such, you should confirm the path of the batch file identified by the search. In addition, a false positive may be generated by an administrator copying a legitimate batch file in this directory tree. You should confirm that the activity is legitimate and modify the search to add exclusions, as necessary. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1204.002/batch_file_in_system32/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Certutil exe certificate extraction=== +This search looks for arguments to certutil.exe indicating the manipulation or extraction of Certificate. This certificate can then be used to sign new authentication tokens specially inside Federated environments such as Windows ADFS. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2021-01-26 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=certutil.exe Processes.process = "* -exportPFX *" by Processes.parent_process Processes.process_name Processes.process Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `certutil_exe_certificate_extraction_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== + + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + + +====Known False Positives==== +Unless there are specific use cases, manipulating or exporting certificates using certutil is uncommon. Extraction of certificate has been observed during attacks such as Golden SAML and other campaigns targeting Federated services. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/suspicious_behaviour/certutil_exe_certificate_extraction/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Child processes of spoolsv exe=== +This search looks for child processes of spoolsv.exe. This activity is associated with a POC privilege-escalation exploit associated with CVE-2018-8440. Spoolsv.exe is the process associated with the Print Spooler service in Windows and typically runs as SYSTEM. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2020-03-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=spoolsv.exe AND Processes.process_name!=regsvr32.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `child_processes_of_spoolsv_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Privilege_Escalation|Windows Privilege Escalation]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Update the `children_of_spoolsv_filter` macro to filter out legitimate child processes spawned by spoolsv.exe. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Some legitimate printer-related processes may show up as children of spoolsv.exe. You should confirm that any activity as legitimate and may be added as exclusions in the search. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Common ransomware extensions=== +The search looks for file modifications with extensions commonly used by Ransomware + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1485/ T1485] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| `ransomware_extensions` +| `common_ransomware_extensions_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransonware|Ryuk Ransonware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data.\ +This search produces fields (`query`,`query_length`,`count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** Name, **Field:** Name\ +1. \ +1. **Label:** File Extension, **Field:** file_extension\ +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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1485 +| Data Destruction +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It is possible for a legitimate file with these extensions to be created. If this is a true ransomware attack, there will be a large number of files created with these extensions. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1485/ransomware_extensions/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Common ransomware notes=== +The search looks for files created with names matching those typically used in ransomware notes that tell the victim how to get their data back. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1485/ T1485] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `ransomware_notes` +| `common_ransomware_notes_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must be ingesting data that records file-system activity from your hosts to populate the Endpoint Filesystem data-model node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report file-system reads and writes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1485 +| Data Destruction +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible that a legitimate file could be created with the same name used by ransomware note files. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1485/ransomware_notes/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Create remote thread into lsass=== +Detect remote thread creation into LSASS consistent with credential dumping. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-12-06 + +
+
+ +====Search==== +`sysmon` EventID=8 TargetImage=*lsass.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, EventCode, TargetImage, TargetProcessId +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `create_remote_thread_into_lsass_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +This search needs Sysmon Logs with a Sysmon configuration, which includes EventCode 8 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Other tools can access LSASS for legitimate reasons and generate an event. In these cases, tweaking the search may help eliminate noise. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Create local admin accounts using net exe=== +This search looks for the creation of local administrator accounts using net.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.001/ T1136.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.user) as user values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=net.exe OR Processes.process_name=net1.exe) AND (Processes.process=*localgroup* OR Processes.process=*/add* OR Processes.process=*user*) by Processes.process Processes.process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|`create_local_admin_accounts_using_net_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.001 +| Local Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators often leverage net.exe to create admin accounts. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Create or delete windows shares using net exe=== +This search looks for the creation or deletion of hidden shares using net.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070.005/ T1070.005] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.user) as user values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processs.process_name=net.exe OR Processes.process_name=net1.exe) by Processes.process Processes.process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search process=*share* +| `create_or_delete_windows_shares_using_net_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070.005 +| Network Share Connection Removal +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators often leverage net.exe to create or delete network shares. You should verify that the activity was intentional and is legitimate. + +====Reference==== + +* https://attack.mitre.org/techniques/T1070/005 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.005/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Creation of shadow copy=== +Monitor for signs that Vssadmin or Wmic has been used to create a shadow copy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2019-12-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=vssadmin.exe Processes.process=*create* Processes.process=*shadow*) OR (Processes.process_name=wmic.exe Processes.process=*shadowcopy* Processes.process=*create*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_shadow_copy_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legitimate administrator usage of Vssadmin or Wmic will create false positives. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Creation of shadow copy with wmic and powershell=== +This search detects the use of wmic and Powershell to create a shadow copy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2019-12-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wmic* OR Processes.process_name=powershell* Processes.process=*shadowcopy* Processes.process=*create* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_shadow_copy_with_wmic_and_powershell_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legtimate administrator usage of wmic to create a shadow copy. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Creation of lsass dump with taskmgr=== +Detect the hands on keyboard behavior of Windows Task Manager creating a prcoess dump of lsass.exe. Upon this behavior occurring, a file write/modification will occur in the users profile under \AppData\Local\Temp. The dump file, lsass.dmp, cannot be renamed, however if the dump occurs more than once, it will be named lsass (2).dmp. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2020-02-03 + +
+
+ +====Search==== +`sysmon` EventID=11 process_name=taskmgr.exe TargetFilename=*lsass*.dmp +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, object_category, process_name, TargetFilename +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `creation_of_lsass_dump_with_taskmgr_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +This search requires Sysmon Logs and a Sysmon configuration, which includes EventCode 11 for detecting file create of lsass.dmp. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators can create memory dumps for debugging purposes, but memory dumps of the LSASS process would be unusual. + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-5---dump-lsassexe-memory-using-windows-task-manager + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Credential dumping via copy command from shadow copy=== +This search detects credential dumping using copy command from a shadow copy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2019-12-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe (Processes.process=*\\system32\\config\\sam* OR Processes.process=*\\system32\\config\\security* OR Processes.process=*\\system32\\config\\system* OR Processes.process=*\\windows\\ntds\\ntds.dit*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `credential_dumping_via_copy_command_from_shadow_copy_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Credential dumping via symlink to shadow copy=== +This search detects the creation of a symlink to a shadow copy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2019-12-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe Processes.process=*mklink* Processes.process=*HarddiskVolumeShadowCopy* by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `credential_dumping_via_symlink_to_shadow_copy_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of fgdump and cachedump with s option=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. FGdump is a newer version of pwdump tool that extracts NTLM and LanMan password hashes from Windows. Cachedump is a publicly-available tool that extracts cached password hashes from a system's registry. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND process_name != null AND parent_process_name != null AND match_regex(parent_process_name, /(?i)System32\\services.exe/)=true AND match_regex(process_name, /(?i)cachedump\d{0,2}.exe/)=true AND match_regex(process_path, /(?i)\\Temp/)=true AND match_regex(cmd_line, /(?i)\-s/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of fgdump and cachedump with v option=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. FGdump is a newer version of pwdump tool that extracts NTLM and LanMan password hashes from Windows. Cachedump is a publicly-available tool that extracts cached password hashes from a system's registry. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null) +| where cmd_line != null AND process_name != null AND process_path != null AND match_regex(process_name, /(?i)cachedump\d{0,2}.exe/)=true AND match_regex(process_path, /(?i)\\Temp/)=true AND match_regex(cmd_line, /(?i)\-v/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of lazagne command line options=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. LaZagne is a tool that extracts various kinds of credentials from a local computer, including account passwords, domain passwords, browser passwords, etc. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003], [https://attack.mitre.org/techniques/T1555/ T1555] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND match_regex(cmd_line, /(?i)all\s+\-oA\s+\-output/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|- +| T1555 +| Credentials from Password Stores +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of use of dsinternals credential conversion modules=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. DSInternals is a collection of PowerShell modules commonly employed in exploits. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)ConvertFrom-ADManagedPasswordBlob/)=true OR match_regex(cmd_line, /(?i)ConvertFrom-GPPrefPassword/)=true OR match_regex(cmd_line, /(?i)ConvertFrom-UnicodePassword/)=true OR match_regex(cmd_line, /(?i)ConvertTo-GPPrefPassword/)=true OR match_regex(cmd_line, /(?i)ConvertTo-KerberosKey/)=true OR match_regex(cmd_line, /(?i)ConvertTo-LMHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-NTHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-OrgIdHash/)=true OR match_regex(cmd_line, /(?i)ConvertTo-UnicodePassword/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of use of dsinternals modules=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. DSInternals is a collection of PowerShell modules commonly employed in exploits. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ADDBBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-ADDBDomainController/)=true OR match_regex(cmd_line, /(?i)Get-ADDBKdsRootKey/)=true OR match_regex(cmd_line, /(?i)Get-ADDBSchemaAttribute/)=true OR match_regex(cmd_line, /(?i)Get-ADKeyCredential/)=true OR match_regex(cmd_line, /(?i)Get-ADReplAccount/)=true OR match_regex(cmd_line, /(?i)Get-ADReplBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-ADSIAccount/)=true OR match_regex(cmd_line, /(?i)Get-AzureADUserEx/)=true OR match_regex(cmd_line, /(?i)Get-BootKey/)=true OR match_regex(cmd_line, /(?i)Get-LsaBackupKey/)=true OR match_regex(cmd_line, /(?i)Get-LsaPolicyInformation/)=true OR match_regex(cmd_line, /(?i)Get-SamPasswordPolicy/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of use of mimikatz modules=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Mimikatz is a collection of tools and modules commonly employed in Windows exploits. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)CRYPTO::Certificates/)=true OR match_regex(cmd_line, /(?i)CRYPTO::keys/)=true OR match_regex(cmd_line, /(?i)kerberos::list/)=true OR match_regex(cmd_line, /(?i)kerberos::tgt/)=true OR match_regex(cmd_line, /(?i)lsadump::sam/)=true OR match_regex(cmd_line, /(?i)lsadump::secrets/)=true OR match_regex(cmd_line, /(?i)lsadump::cache/)=true OR match_regex(cmd_line, /(?i)lsadump::lsa/)=true OR match_regex(cmd_line, /(?i)lsadump::trust/)=true OR match_regex(cmd_line, /(?i)lsadump::backupkeys/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction indicative of use of powersploit modules=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. PowerSploit is a collection of Microsoft PowerShell modules commonly employed in exploits. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ApplicationHost/)=true OR match_regex(cmd_line, /(?i)Get-CachedGPPPassword/)=true OR match_regex(cmd_line, /(?i)Get-GPPAutologon/)=true OR match_regex(cmd_line, /(?i)Get-GPPPassword/)=true OR match_regex(cmd_line, /(?i)Get-RegistryAutoLogon/)=true OR match_regex(cmd_line, /(?i)Get-SiteListPassword/)=true OR match_regex(cmd_line, /(?i)Get-SPNTicket/)=true OR match_regex(cmd_line, /(?i)Request-SPNTicket/)=true OR match_regex(cmd_line, /(?i)Get-VaultCredential/)=true OR match_regex(cmd_line, /(?i)Invoke-Kerberoast/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction native microsoft debuggers peek into the kernel=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Native Microsoft debuggers, such as kd, ntkd, livekd and windbg, can be leveraged to read credential material directly from memory and process dumps. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND parent_process_name != null AND process_name != null AND ( match_regex(parent_process_name, /(?i)ntkd\.exe/)=true OR match_regex(parent_process_name, /(?i)livekd\.exe/)=true ) AND match_regex(process_name, /(?i)conhost\.exe/)=true AND match_regex(cmd_line, /(?i)0xffffffff/)=true AND match_regex(cmd_line, /(?i)\-ForceV1/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, using debuggers this way may be indicative of developers analyzing crash dumps of their code. Note, even for developers this is an unusual way of working on code - debuggers are mostly used to step through code, not analyze its crash dumps. + +====Reference==== + +* https://medium.com/@clermont1050/covid-19-cyber-infection-c615ead7c29 + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction native microsoft debuggers via z command line option=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. Native Microsoft debuggers, such as kd, ntkd, livekd and windbg, can be leveraged to read credential material directly from memory and process dumps. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null) +| where cmd_line != null AND process_name != null AND ( match_regex(process_name, /^(?i)ntkd\.exe/)=true OR match_regex(process_name, /^(?i)kd\.exe/)=true ) AND match_regex(cmd_line, /(?i)\-z\s+/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, using debuggers this way may be indicative of developers analyzing crash dumps of their code. Note, even for developers this is an unusual way of working on code - debuggers are mostly used to step through code, not analyze its crash dumps. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Credential extraction via get-addbaccount module present in powersploit and dsinternals=== +Credential extraction is often an illegal recovery of credential material from secured authentication resources and repositories. This process may also involve decryption or other transformations of the stored credential material. PowerSploit and DSInternals are common exploit APIs offering PowerShell modules for various exploits of Windows and Active Directory environments. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003/ T1003] +* '''Last Updated''': 2020-10-18 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND match_regex(cmd_line, /(?i)Get-ADDBAccount/)=true AND match_regex(cmd_line, /(?i)\-dbpath[\s;:\.\ +|]+/)=true + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003 +| OS Credential Dumping +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Deleting shadow copies=== +The vssadmin.exe utility is used to interact with the Volume Shadow Copy Service. Wmic is an interface to the Windows Management Instrumentation. This search looks for either of these tools being used to delete shadow copies. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=vssadmin.exe OR Processes.process_name=wmic.exe) Processes.process=*delete* Processes.process=*shadow* by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `deleting_shadow_copies_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Log_Manipulation|Windows Log Manipulation]] + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +vssadmin.exe and wmic.exe are standard applications shipped with modern versions of windows. They may be used by administrators to legitimately delete old backup copies, although this is typically rare. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Detect activity related to pass the hash attacks=== +This search looks for specific authentication events from the Windows Security Event logs to detect potential attempts at using the Pass-the-Hash technique. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1550.002/ T1550.002] +* '''Last Updated''': 2020-10-15 + +
+
+ +====Search==== +`wineventlog_security` EventCode=4624 (Logon_Type=3 Logon_Process=NtLmSsp WorkstationName=WORKSTATION NOT AccountName="ANONYMOUS LOGON") OR (Logon_Type=9 Logon_Process=seclogo) +| fillnull +| stats count min(_time) as firstTime max(_time) as lastTime by EventCode, Logon_Type, WorkstationName, user, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_activity_related_to_pass_the_hash_attacks_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Lateral_Movement|Lateral Movement]] + + +====How To Implement==== +To successfully implement this search, you must ingest your Windows Security Event logs and leverage the latest TA for Windows. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1550.002 +| Pass the Hash +| Defense Evasion, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legitimate logon activity by authorized NTLM systems may be detected by this search. Please investigate as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1550.002/atomic_red_team/windows-security.log + + +''version'': 5 +
+
+ +---- + +===Detect baron samedit cve-2021-3156=== +This search detects the heap-based buffer overflow of sudoedit + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2021-01-27 + +
+
+ +====Search==== +`linux_hosts` +| search "sudoedit -s \\" +| `detect_baron_samedit_cve_2021_3156_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Baron_Samedit_CVE-2021-3156|Baron Samedit CVE-2021-3156]] + + +====How To Implement==== +Splunk Universal Forwarder running on Linux systems, capturing logs from the /var/log directory. The vulnerability is exposed when a non privledged user tries passing in a single \ character at the end of the command while using the shell and edit flags. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect baron samedit cve-2021-3156 segfault=== +This search detects the heap-based buffer overflow of sudoedit + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2021-01-29 + +
+
+ +====Search==== +`linux_hosts` +| search sudoedit segfault +| stats count min(_time) as firstTime max(_time) as lastTime by host +| search count > 5 +| `detect_baron_samedit_cve_2021_3156_segfault_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Baron_Samedit_CVE-2021-3156|Baron Samedit CVE-2021-3156]] + + +====How To Implement==== +Splunk Universal Forwarder running on Linux systems (tested on Centos and Ubuntu), where segfaults are being logged. This also captures instances where the exploit has been compiled into a binary. The detection looks for greater than 5 instances of sudoedit combined with segfault over your search time period on a single host + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +If sudoedit is throwing segfaults for other reasons this will pick those up too. + +====Reference==== + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect baron samedit cve-2021-3156 via osquery=== +This search detects the heap-based buffer overflow of sudoedit + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2021-01-28 + +
+
+ +====Search==== +`osquery_process` +| search "columns.cmdline"="sudoedit -s \\*" +| `detect_baron_samedit_cve_2021_3156_via_osquery_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Baron_Samedit_CVE-2021-3156|Baron Samedit CVE-2021-3156]] + + +====How To Implement==== +OSQuery installed and configured to pick up process events (info at https://osquery.io) as well as using the Splunk OSQuery Add-on https://splunkbase.splunk.com/app/4402. The vulnerability is exposed when a non privledged user tries passing in a single \ character at the end of the command while using the shell and edit flags. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect computer changed with anonymous account=== +This search looks for Event Code 4742 (Computer Change) or EventCode 4624 (An account was successfully logged on) with an anonymous account. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1210/ T1210] +* '''Last Updated''': 2020-09-18 + +
+
+ +====Search==== +`wineventlog_security` EventCode=4624 OR EventCode=4742 TargetUserName="ANONYMOUS LOGON" LogonType=3 +| stats count values(host) as host, values(TargetDomainName) as Domain, values(user) as user +| `detect_computer_changed_with_anonymous_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Detect_Zerologon_Attack|Detect Zerologon Attack]] + + +====How To Implement==== +This search requires audit computer account management to be enabled on the system in order to generate Event ID 4742. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Event Logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1210 +| Exploitation of Remote Services +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None thus far found + +====Reference==== + +* https://www.lares.com/blog/from-lares-labs-defensive-guidance-for-zerologon-cve-2020-1472/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect credential dumping through lsass access=== +This search looks for reading lsass memory consistent with credential dumping. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2019-12-03 + +
+
+ +====Search==== +`sysmon` EventCode=10 TargetImage=*lsass.exe (GrantedAccess=0x1010 OR GrantedAccess=0x1410) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, SourceImage, SourceProcessId, TargetImage, TargetProcessId, EventCode, GrantedAccess +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_credential_dumping_through_lsass_access_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + +* [[Documentation:ESSOC:stories:UseCase#Detect_Zerologon_Attack|Detect Zerologon Attack]] + + +====How To Implement==== +This search needs Sysmon Logs and a sysmon configuration, which includes EventCode 10 with lsass.exe. This search uses an input macro named `sysmon`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Windows Sysmon logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The activity may be legitimate. Other tools can access lsass for legitimate reasons, and it's possible this event could be generated in those cases. In these cases, false positives should be fairly obvious and you may need to tweak the search to eliminate noise. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Detect dump lsass memory using comsvcs=== +This search detects the memory of lsass.exe being dumped for offline credential theft attack. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2020-09-15 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval tenant=ucast(map_get(input_event, "_tenant"), "string", null), machine=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process=lower(ucast(map_get(input_event, "process"), "string", null)) +| where process_name LIKE "%rundll32.exe%" AND match_regex(process, /(?i)comsvcs.dll[,\s]+MiniDump/)=true +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(machine), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including Windows command line logging. You can see how we test this with [Event Code 4688](https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4688a) on the [attack_range](https://github.com/splunk/attack_range/blob/develop/ansible/roles/windows_common/tasks/windows-enable-4688-cmd-line-audit.yml). + +====Required field==== + +* process_name + +* _tenant + +* _time + +* dest_device_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect excessive account lockouts from endpoint=== +This search identifies endpoints that have caused a relatively high number of account lockouts in a short period. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.002/ T1078.002] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(All_Changes.user) as user from datamodel=Change.All_Changes where nodename=All_Changes.Account_Management All_Changes.result="lockout" by All_Changes.dest All_Changes.result +|`drop_dm_object_name("All_Changes")` +|`drop_dm_object_name("Account_Management")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search count > 5 +| `detect_excessive_account_lockouts_from_endpoint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Account_Monitoring_and_Controls|Account Monitoring and Controls]] + + +====How To Implement==== +You must ingest your Windows security event logs in the `Change` datamodel under the nodename is `Account_Management`, for this search to execute successfully. Please consider updating the cron schedule and the count of lockouts you want to monitor, according to your environment. \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called "Excessive Account Lockouts Enrichment and Response" can be configured to run when any results are found by this detection search. The Playbook executes the Contextual and Investigative searches in this Story, conducts additional information gathering on Windows endpoints, and takes a response action to shut down the affected endpoint. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook Link:`https://my.phantom.us/4.1/playbook/excessive-account-lockouts-enrichment-and-response/`).\ + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.002 +| Domain Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It's possible that a widely used system, such as a kiosk, could cause a large number of account lockouts. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-system.log + + +''version'': 5 +
+
+ +---- + +===Detect excessive user account lockouts=== +This search detects user accounts that have been locked out a relatively high number of times in a short period. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.003/ T1078.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Change.All_Changes where nodename=All_Changes.Account_Management All_Changes.result="lockout" by All_Changes.user All_Changes.result +|`drop_dm_object_name("All_Changes")` +|`drop_dm_object_name("Account_Management")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search count > 5 +| `detect_excessive_user_account_lockouts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Account_Monitoring_and_Controls|Account Monitoring and Controls]] + + +====How To Implement==== +ou must ingest your Windows security event logs in the `Change` datamodel under the nodename is `Account_Management`, for this search to execute successfully. Please consider updating the cron schedule and the count of lockouts you want to monitor, according to your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.003 +| Local Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that a legitimate user is experiencing an issue causing multiple account login failures leading to lockouts. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1078.002/account_lockout/windows-system.log + + +''version'': 3 +
+
+ +---- + +===Detect html help renamed=== +The following analytic identifies a renamed instance of hh.exe (HTML Help) executing a Compiled HTML Help (CHM). This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Validate it is the legitimate version of hh.exe by reviewing the PE metadata. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.001/ T1218.001] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Search==== +`sysmon` EventID=1 OriginalFileName=HH.exe NOT process_name=hh.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_renamed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Compiled_HTML_Activity|Suspicious Compiled HTML Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Tune and filter known instances where renamed hh.exe may be used. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.001 +| Compiled HTML File +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely a renamed instance of hh.exe will be used legitimately, filter as needed. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect html help spawn child process=== +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) that spawns a child process. This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Review child process events and investigate further. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.001/ T1218.001] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=hh.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_spawn_child_process_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Compiled_HTML_Activity|Suspicious Compiled HTML Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.001 +| Compiled HTML File +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications (ex. web browsers) may spawn a child process. Filter as needed. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect html help url in command line=== +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) file from a remote url. This particular technique will load Windows script code from a compiled help file. CHM files may contain nearly any file type embedded, but only execute html/htm. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. Review reputation of remote IP and domain. Some instances, it is worth decompiling the .chm file to review its original contents. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.001/ T1218.001] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=hh.exe Processes.process=*http* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_url_in_command_line_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Compiled_HTML_Activity|Suspicious Compiled HTML Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.001 +| Compiled HTML File +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may retrieve a CHM remotely, filter as needed. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://blog.sevagas.com/?Hacking-around-HTA-files + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect html help using infotech storage handlers=== +The following analytic identifies hh.exe (HTML Help) execution of a Compiled HTML Help (CHM) file using InfoTech Storage Handlers. This particular technique will load Windows script code from a compiled help file, using InfoTech Storage Handlers. itss.dll will load upon execution. Three InfoTech Storage handlers are supported - ms-its, its, mk:@MSITStore. ITSS may be used to launch a specific html/htm file from within a CHM file. CHM files may contain nearly any file type embedded. Upon a successful execution, the following script engines may be used for execution - JScript, VBScript, VBScript.Encode, JScript.Encode, JScript.Compact. Analyst may identify vbscript.dll or jscript.dll loading into hh.exe upon execution. The "htm" and "html" file extensions were the only extensions observed to be supported for the execution of Shortcut commands or WSH script code. During investigation, identify script content origination. hh.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.001/ T1218.001] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=hh.exe Processes.process IN ("*its:*", "*mk:@MSITStore:*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_html_help_using_infotech_storage_handlers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Compiled_HTML_Activity|Suspicious Compiled HTML Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.001 +| Compiled HTML File +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It is rare to see instances of InfoTech Storage Handlers being used, but it does happen in some legitimate instances. Filter as needed. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://www.kb.cert.org/vuls/id/851869 + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.001/T1218.001.md + +* https://lolbas-project.github.io/lolbas/Binaries/Hh/ + +* https://gist.github.com/mgeeky/cce31c8602a144d8f2172a73d510e0e7 + +* https://cyberforensicator.com/2019/01/20/silence-dissecting-malicious-chm-files-and-performing-forensic-analysis/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect kerberoasting=== +This search detects a potential kerberoasting attack via service principal name requests + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1558.003/ T1558.003] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval _time=map_get(input_event, "_time"), EventCode=map_get(input_event, "event_code"), TicketOptions=map_get(input_event, "ticket_options"), TicketEncryptionType=map_get(input_event, "ticket_encryption_type"), ServiceName=map_get(input_event, "service_name"), ServiceID=map_get(input_event, "service_id") +| where EventCode="4769" AND TicketOptions="0x40810000" AND TicketEncryptionType="0x17" +| first_time_event input_columns=["EventCode","TicketOptions","TicketEncryptionType","ServiceName","ServiceID"] +| where first_time_EventCode_TicketOptions_TicketEncryptionType_ServiceName_ServiceID +| eval start_time=_time, end_time=_time, body="TBD", entities="TBD" +| select start_time, end_time, entities, body +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +The test data is converted from Windows Security Event logs generated from Attach Range simulation and used in SPL search and extended to SPL2 + +====Required field==== + +* service_name + +* _time + +* event_code + +* ticket_encryption_type + +* service_id + +* ticket_options + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1558.003 +| Kerberoasting +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Older systems that support kerberos RC4 by default NetApp may generate false positives + +====Reference==== + +* Initial ESCU implementation by Jose Hernandez and Patrick Bareiss + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect mshta url in command line=== +This analytic identifies when Microsoft HTML Application Host (mshta.exe) utility is used to make remote http connections. Adversaries may use mshta.exe to proxy the download and execution of remote .hta files. The analytic identifies command line arguments of http and https being used. This technique is commonly used by malicious software to bypass preventative controls. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "rundll32.exe" and its parent process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=mshta.exe (Processes.process="*http://*" OR Processes.process="*https://*") by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_url_in_command_line_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +It is possible legitimate applications may perform this behavior and will need to be filtered. + +====Reference==== + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect new local admin account=== +This search looks for newly created accounts that have been elevated to local administrators. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.001/ T1136.001] +* '''Last Updated''': 2020-07-08 + +
+
+ +====Search==== +`wineventlog_security` EventCode=4720 OR (EventCode=4732 Group_Name=Administrators) +| transaction member_id connected=false maxspan=180m +| rename member_id as user +| stats count min(_time) as firstTime max(_time) as lastTime by user dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_new_local_admin_account_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting Windows event logs using the Splunk Windows TA and collecting event code 4720 and 4732 + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.001 +| Local Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Known False Positives==== +The activity may be legitimate. For this reason, it's best to verify the account with an administrator and ask whether there was a valid service request for the account creation. If your local administrator group name is not "Administrators", this search may generate an excessive number of false positives + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Detect oulook exe writing a zip file=== +This search looks for execution of process `outlook.exe` where the process is writing a `.zip` file to the disk. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.001/ T1566.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_name=outlook.exe OR Processes.process_name=explorer.exe by _time span=5m Processes.parent_process_id Processes.process_id Processes.dest Processes.process_name Processes.parent_process_name Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename process_id as malicious_id +| rename parent_process_id as outlook_id +| join malicious_id type=inner[ +| tstats `security_content_summariesonly` count values(Filesystem.file_path) as file_path values(Filesystem.file_name) as file_name FROM datamodel=Endpoint.Filesystem where (Filesystem.file_path=*zip* OR Filesystem.file_name=*.lnk ) AND (Filesystem.file_path=C:\\Users* OR Filesystem.file_path=*Local\\Temp*) by _time span=5m Filesystem.process_id Filesystem.file_hash Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename process_id as malicious_id +| fields malicious_id outlook_id dest file_path file_name file_hash count file_id] +| table firstTime lastTime user malicious_id outlook_id process_name parent_process_name file_name file_path +| where file_name != "" +| `detect_oulook_exe_writing_a__zip_file_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Phishing_Payloads|Phishing Payloads]] + + +====How To Implement==== +You must be ingesting data that records filesystem and process activity from your hosts to populate the Endpoint data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.001 +| Spearphishing Attachment +| Initial Access +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +It is not uncommon for outlook to write legitimate zip files to the disk. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Detect pass the hash=== +This search looks for specific authentication events from the Windows Security Event logs to detect potential attempts using Pass-the-Hash technique. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1550.002/ T1550.002] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval _time=map_get(input_event, "_time"), EventCode=map_get(input_event, "event_code"), LogonType=map_get(input_event, "logon_type"), LogonProcess=map_get(input_event, "logon_process"), ComputerName=map_get(input_event, "dest_ip_primary_artifact"), AccountName=map_get(input_event, "dest_user_primary_artifact") +| where (LogonType="3" AND LogonProcess="NtLmSsp" AND AccountName IS NOT NULL) OR (LogonType="9" AND LogonProcess="seclogo") +| first_time_event input_columns=["EventCode","LogonProcess","ComputerName"] +| where first_time_EventCode_LogonProcess_ComputerName +| eval start_time=_time, end_time=_time, body="TBD", entities="TBD" +| select start_time, end_time, entities, body +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +The test data is converted from Windows Security Event logs generated from Attach Range simulation and used in SPL search and extended to SPL2 + +====Required field==== + +* logon_process + +* dest_user_primary_artifact + +* _time + +* event_code + +* dest_ip_primary_artifact + +* logon_type + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1550.002 +| Pass the Hash +| Defense Evasion, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legitimate logon activity by authorized NTLM systems may be detected by this search. Please investigate as appropriate. + +====Reference==== + +* Initial ESCU implementation by Bhavin Patel and Patrick Bareiss + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect path interception by creation of program exe=== +The detection Detect Path Interception By Creation Of program exe is detecting the abuse of unquoted service paths, which is a popular technique for privilege escalation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1574.009/ T1574.009] +* '''Last Updated''': 2020-07-03 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=services.exe by Processes.user Processes.process_name Processes.process Processes.dest index +| `drop_dm_object_name(Processes)` +| rex field=process "^.*?\\\\(?[^\\\\]*\.(?:exe +|bat +|com +|ps1))" +| eval process_name = lower(process_name) +| eval service_process = lower(service_process) +| where process_name != service_process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_path_interception_by_creation_of_program_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1574.009 +| Path Interception by Unquoted Path +| Defense Evasion, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + +* https://medium.com/@SumitVerma101/windows-privilege-escalation-part-1-unquoted-service-path-c7a011a8d8ae + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1574.009/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Detect prohibited applications spawning cmd exe=== +This search looks for executions of cmd.exe spawned by a process that is often abused by attackers and that does not typically launch cmd.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-11-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=cmd.exe by Processes.parent_process_name Processes.process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +|search [`prohibited_apps_launching_cmd`] +| `detect_prohibited_applications_spawning_cmd_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Zoom_Child_Processes|Suspicious Zoom Child Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts and populates the Endpoint data model with the resultant dataset. This search includes a lookup file, `prohibited_apps_launching_cmd.csv`, that contains a list of processes that should not be spawning cmd.exe. You can modify this lookup to better suit your environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +There are circumstances where an application may legitimately execute and interact with the Windows command-line interface. Investigate and modify the lookup file, as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.003/powershell_spawn_cmd/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Detect prohibited applications spawning cmd exe=== +This search looks for executions of cmd.exe spawned by a process that is often abused by attackers and that does not typically launch cmd.exe. This is a SPL2 implementation of the rule `Detect Prohibited Applications Spawning cmd.exe` by @bpatel. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059/ T1059] +* '''Last Updated''': 2020-7-13 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval process_name=ucast(map_get(input_event, "process_name"), "string", null), parent_process=lower(ucast(map_get(input_event, "parent_process_name"), "string", null)), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) + +| where process_name="cmd.exe" +| rex field=parent_process "(?[^\\\\]+)$" +| where field0="winword.exe" OR field0="excel.exe" OR field0="outlook.exe" OR field0="powerpnt.exe" OR field0="visio.exe" OR field0="mspub.exe" OR field0="acrobat.exe" OR field0="acrord32.exe" OR field0="chrome.exe" OR field0="iexplore.exe" OR field0="opera.exe" OR field0="firefox.exe" OR field0="java.exe" OR field0="powershell.exe" + +| eval start_time=timestamp, end_time=timestamp, entities=mvappend(dest_device_id, dest_user_id), body="TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting sysmon logs. This search has been modified to process raw sysmon data from attack_range's nxlogs on DSP. + +====Required field==== + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059 +| Command and Scripting Interpreter +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +There are circumstances where an application may legitimately execute and interact with the Windows command-line interface. Investigate and modify the lookup file, as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect psexec with accepteula flag=== +This search looks for events where `PsExec.exe` is run with the `accepteula` flag in the command line. PsExec is a built-in Windows utility that enables you to execute processes on other systems. It is fully interactive for console applications. This tool is widely used for launching interactive command prompts on remote systems. Threat actors leverage this extensively for executing code on compromised systems. If an attacker is running PsExec for the first time, they will be prompted to accept the end-user license agreement (EULA), which can be passed as the argument `accepteula` within the command line. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002] +* '''Last Updated''': 2020-11-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*psexec* Processes.process=*accepteula* by Processes.process_name Processes.dest Processes.parent_process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_psexec_with_accepteula_flag_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators can leverage PsExec for accessing remote systems and might pass `accepteula` as an argument if they are running this tool for the first time. However, it is not likely that you'd see multiple occurrences of this event on a machine + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1021.002/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Detect rare executables=== +This search will return a table of rare processes, the names of the systems running them, and the users who initiated each process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2020-03-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.dest) as dest values(Processes.user) as user min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.process_name +| rename Processes.process_name as process +| rex field=user "(?.*)\\\\(?.*)" +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats count from datamodel=Endpoint.Processes by Processes.process_name +| rare Processes.process_name limit=30 +| rename Processes.process_name as process +| `filter_rare_process_allow_list` +| table process ] +| `detect_rare_executables_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts and populating the endpoint data model with the resultant dataset. The macro `filter_rare_process_allow_list` searches two lookup files for allowed processes. These consist of `rare_process_allow_list_default.csv` and `rare_process_allow_list_local.csv`. To add your own processes to the allow list, add them to `rare_process_allow_list_local.csv`. If you wish to remove an entry from the default lookup file, you will have to modify the macro itself to set the allow_list value for that process to false. You can modify the limit parameter and search scheduling to better suit your environment. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Some legitimate processes may be only rarely executed in your environment. As these are identified, update `rare_process_allow_list_local.csv` to filter them out of your search results. + +====Reference==== + + +====Test Dataset==== + + +''version'': 5 +
+
+ +---- + +===Detect regasm spawning a process=== +The following analytic identifies regasm.exe spawning a process. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. Spawning of a child process is rare from either process and should be investigated further. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=regasm.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_spawning_a_process_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regasm.exe or regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regasm with network connection=== +The following analytic identifies regasm.exe with a network connection to a public IP address, exluding private IP space. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. By contacting a remote command and control server, the adversary will have the ability to escalate privileges and complete the objectives. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. Review the reputation of the remote IP or domain and block as needed. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-16 + +
+
+ +====Search==== +`sysmon` EventID=3 dest_ip!=10.0.0.0/12 dest_ip!=172.16.0.0/12 dest_ip!=192.168.0.0/16 process_name=regasm.exe +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, process_name, src_ip, dest_host, dest_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_with_network_connection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regasm.exe with a network connection may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regasm with no command line arguments=== +The following analytic identifies regasm.exe with no command line arguments. This particular behavior occurs when another process injects into regasm.exe, no command line arguments will be present. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-12 + +
+
+ +====Search==== +`sysmon` EventID=1 (process_name=regasm.exe OR OriginalFileName=RegAsm.exe) +| regex CommandLine="(regasm\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regasm_with_no_command_line_arguments_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regasm.exe or may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regasm/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regsvcs spawning a process=== +The following analytic identifies regsvcs.exe spawning a process. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. Spawning of a child process is rare from either process and should be investigated further. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=regsvcs.exe by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_spawning_a_process_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regasm.exe or regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regsvcs with network connection=== +The following analytic identifies Regsvcs.exe with a network connection to a public IP address, exluding private IP space. This particular technique has been used in the wild to bypass application control products. Regasm.exe and Regsvcs.exe are signed by Microsoft. By contacting a remote command and control server, the adversary will have the ability to escalate privileges and complete the objectives. During investigation, identify and retrieve the content being loaded. Review parallel processes for additional suspicious behavior. Gather any other file modifications and review accordingly. Review the reputation of the remote IP or domain and block as needed. regsvcs.exe and regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-16 + +
+
+ +====Search==== +`sysmon` EventID=3 dest_ip!=10.0.0.0/12 dest_ip!=172.16.0.0/12 dest_ip!=192.168.0.0/16 process_name=regsvcs.exe +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, process_name, src_ip, dest_host, dest_ip +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_with_network_connection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regsvcs with no command line arguments=== +The following analytic identifies regsvcs.exe with no command line arguments. This particular behavior occurs when another process injects into regsvcs.exe, no command line arguments will be present. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Regasm.exe are natively found in C:\Windows\Microsoft.NET\Framework\v*\regasm|regsvcs.exe and C:\Windows\Microsoft.NET\Framework64\v*\regasm|regsvcs.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-12 + +
+
+ +====Search==== +`sysmon` EventID=1 (process_name=regsvcs.exe OR OriginalFileName=RegSvcs.exe) +| regex CommandLine="(regsvcs\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvcs_with_no_command_line_arguments_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvcs_Regasm_Activity|Suspicious Regsvcs Regasm Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, limited instances of regsvcs.exe may cause a false positive. Filter based endpoint usage, command line arguments, or process lineage. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.009/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect regsvr32 application control bypass=== +Adversaries may abuse Regsvr32.exe to proxy execution of malicious code. Regsvr32.exe is a command-line program used to register and unregister object linking and embedding controls, including dynamic link libraries (DLLs), on Windows systems. Regsvr32.exe is also a Microsoft signed binary.This variation of the technique is often referred to as a "Squiblydoo" attack. \ +Upon investigating, look for network connections to remote destinations (internal or external). Be cautious to modify the query to look for "scrobj.dll", the ".dll" is not required to load scrobj. "scrobj.dll" will be loaded by "regsvr32.exe" upon execution. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.010/ T1218.010] +* '''Last Updated''': 2021-01-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=regsvr32.exe OR Processes.process_name!=regsvr32.exe) Processes.process=*scrobj* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_regsvr32_application_control_bypass_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvr32_Activity|Suspicious Regsvr32 Activity]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Tune the query by modifying/removing the !=regsv32.exe. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.010 +| Regsvr32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Limited false positives related to third party software registering .DLL's. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + +* https://support.microsoft.com/en-us/topic/how-to-use-the-regsvr32-tool-and-troubleshoot-regsvr32-error-messages-a98d960a-7392-e6fe-d90a-3f4e0cb543e5 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.010/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect rundll32 application control bypass - advpack=== +The following analytic identifies rundll32.exe loading advpack.dll and ieadvpack.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-04 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*advpack* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___advpack_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use advpack.dll or ieadvpack.dll, triggering a false positive. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Advpack/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect rundll32 application control bypass - setupapi=== +The following analytic identifies rundll32.exe loading setupapi.dll and iesetupapi.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-04 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*setupapi* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___setupapi_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use setupapi triggering a false positive. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Setupapi/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect rundll32 application control bypass - syssetup=== +The following analytic identifies rundll32.exe loading syssetup.dll by calling the LaunchINFSection function on the command line. This particular technique will load script code from a file. Upon a successful execution, the following module loads may occur - clr.dll, jscript.dll and scrobj.dll. During investigation, identify script content origination. Generally, a child process will spawn from rundll32.exe, but that may be bypassed based on script code contents. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, review any network connections and obtain the script content executed. It's possible other files are on disk. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-04 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*syssetup* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_application_control_bypass___syssetup_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use syssetup.dll, triggering a false positive. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://lolbas-project.github.io/lolbas/Libraries/Syssetup/ + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect rundll32 inline hta execution=== +The following analytic identifies "rundll32.exe" execution with inline protocol handlers. "JavaScript", "VBScript", and "About" are the only supported options when invoking HTA content directly on the command-line. This type of behavior is commonly observed with fileless malware or application whitelisting bypass techniques. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "rundll32.exe" and its parent process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe (Processes.process=*vbscript* OR Processes.process=*javascript* OR Processes.process=*about*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_rundll32_inline_hta_execution_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +====Reference==== + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect use of cmd exe to launch script interpreters=== +This search looks for the execution of the cscript.exe or wscript.exe processes, with a parent of cmd.exe. The search will return the count, the first and last time this execution was seen on a machine, the user, and the destination of the machine + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name="cmd.exe" (Processes.process_name=cscript.exe OR Processes.process_name =wscript.exe) by Processes.parent_process Processes.process_name Processes.user Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_use_of_cmd_exe_to_launch_script_interpreters_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Some legitimate applications may exhibit this behavior. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.003/cmd_spawns_cscript/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Detect mshta inline hta execution=== +The following analytic identifies "mshta.exe" execution with inline protocol handlers. "JavaScript", "VBScript", and "About" are the only supported options when invoking HTA content directly on the command-line. The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, process "mshta.exe" and its parent process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=mshta.exe (Processes.process=*vbscript* OR Processes.process=*javascript* OR Processes.process=*about*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_inline_hta_execution_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +====Reference==== + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-extidx-prot-implementing + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Detect mshta renamed=== +The following analytic identifies renamed instances of mshta.exe executing. Mshta.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. This analytic utilizes the internal name of the PE to identify if is the legitimate mshta binary. Further analysis should be performed to review the executed content and validation it is the real mshta. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Search==== +`sysmon` EventID=1 (OriginalFileName=mshta.exe AND process_name!=mshta.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_mshta_renamed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may use a moved copy of mshta.exe, but never renamed, triggering a false positive. + +====Reference==== + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Detect processes used for system network configuration discovery=== +This search looks for fast execution of processes used for system network configuration discovery on the endpoint. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1016/ T1016] +* '''Last Updated''': 2020-11-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest Processes.process_name Processes.user _time +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| search `system_network_configuration_discovery_tools` +| transaction dest connected=false maxpause=5m +|where eventcount>=5 +| table firstTime lastTime dest user process_name process parent_process eventcount +| `detect_processes_used_for_system_network_configuration_discovery_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + + +====How To Implement==== +You must be ingesting data that records registry activity from your hosts to populate the Endpoint data model in the processes node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is usually generated via logs that report reads and writes to the registry or that are populated via Windows event logs, after enabling process tracking in your Windows audit settings. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1016 +| System Network Configuration Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Installation + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +It is uncommon for normal users to execute a series of commands used for network discovery. System administrators often use scripts to execute these commands. These can generate false positives. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1016/discovery_commands/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Detection of tools built by nirsoft=== +This search looks for specific command-line arguments that may indicate the execution of tools made by Nirsoft, which are legitimate, but may be abused by attackers. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1072/ T1072] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process="* /stext *" OR Processes.process="* /scomma *" ) by Processes.parent_process Processes.process_name Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detection_of_tools_built_by_nirsoft_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1072 +| Software Deployment Tools +| Execution, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +While legitimate, these NirSoft tools are prone to abuse. You should verfiy that the tool was used for a legitimate purpose. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Disabling remote user account control=== +The search looks for modifications to registry keys that control the enforcement of Windows User Account Control (UAC). + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1548.002/ T1548.002] +* '''Last Updated''': 2020-11-18 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path=*HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\EnableLUA* Registry.registry_value_name="DWORD (0x00000000)" by Registry.dest, Registry.registry_key_name Registry.user Registry.registry_path Registry.registry_value_name Registry.action +| `drop_dm_object_name(Registry)` +| `disabling_remote_user_account_control_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Defense_Evasion_Tactics|Windows Defense Evasion Tactics]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report registry modifications. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1548.002 +| Bypass User Account Control +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +This registry key may be modified via administrators to implement a change in system policy. This type of change should be a very rare occurrence. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1548.002/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Dump lsass via comsvcs dll=== +Detect the usage of comsvcs.dll for dumping the lsass process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2020-02-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*comsvcs.dll* Processes.process=*MiniDump* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_comsvcs_dll_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://modexp.wordpress.com/2019/08/30/minidumpwritedump-via-com-services-dll/ + +* https://twitter.com/SBousseaden/status/1167417096374050817 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Dump lsass via procdump=== +Detect procdump.exe dumping the lsass process. This query looks for both -mm and -ma usage. -mm will produce a mini dump file and -ma will write a dump file with all process memory. Both are highly suspect and should be reviewed. This query does not monitor for the internal name (OriginalFileName=procdump) of the PE or look for procdump64.exe. Modify the query as needed.\ +During triage, confirm this is procdump.exe executing. If it is the first time a Sysinternals utility has been ran, it is possible there will be a -accepteula on the command line. Review other endpoint data sources for cross process (injection) into lsass.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2021-02-01 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=procdump.exe (Processes.process=*-ma* OR Processes.process=*-mm*) Processes.process=*lsass* by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_procdump_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://docs.microsoft.com/en-us/sysinternals/downloads/procdump + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-2---dump-lsassexe-memory-using-procdump + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Dump lsass via procdump rename=== +Detect a renamed instance of procdump.exe dumping the lsass process. This query looks for both -mm and -ma usage. -mm will produce a mini dump file and -ma will write a dump file with all process memory. Both are highly suspect and should be reviewed. Modify the query as needed.\ +During triage, confirm this is procdump.exe executing. If it is the first time a Sysinternals utility has been ran, it is possible there will be a -accepteula on the command line. Review other endpoint data sources for cross process (injection) into lsass.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001] +* '''Last Updated''': 2021-02-01 + +
+
+ +====Search==== +`sysmon` OriginalFileName=procdump process_name!=procdump*.exe EventID=1 (CommandLine=*-ma* OR CommandLine=*-mm*) CommandLine=*lsass* +| rename Computer as dest +| stats count min(_time) as firstTime max(_time) as lastTime by dest, parent_process_name, process_name, OriginalFileName, CommandLine +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `dump_lsass_via_procdump_rename_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://attack.mitre.org/techniques/T1003/001/ + +* https://docs.microsoft.com/en-us/sysinternals/downloads/procdump + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md#atomic-test-2---dump-lsassexe-memory-using-procdump + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Execution of file with multiple extensions=== +This search looks for processes launched from files that have double extensions in the file name. This is typically done to obscure the "real" file extension and make it appear as though the file being accessed is a data file, as opposed to executable content. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2020-11-18 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process = *.doc.exe OR Processes.process = *.htm.exe OR Processes.process = *.html.exe OR Processes.process = *.txt.exe OR Processes.process = *.pdf.exe OR Processes.process = *.doc.exe by Processes.dest Processes.user Processes.process Processes.parent_process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `execution_of_file_with_multiple_extensions_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_File_Extension_and_Association_Abuse|Windows File Extension and Association Abuse]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===File with samsam extension=== +The search looks for file writes with extensions consistent with a SamSam ransomware attack. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2018-12-14 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem by Filesystem.file_name +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| rex field=file_name "(?\.[^\.]+)$" +| search file_extension=.stubbin OR file_extension=.berkshire OR file_extension=.satoshi OR file_extension=.sophos OR file_extension=.keyxml +| `file_with_samsam_extension_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +You must be ingesting data that records file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + + +====Known False Positives==== +Because these extensions are not typically used in normal operations, you should investigate all results. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/samsam_extension/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===First time seen child process of zoom=== +This search looks for child processes spawned by zoom.exe or zoom.us that has not previously been seen. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2020-05-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` min(_time) as firstTime values(Processes.parent_process_name) as parent_process_name values(Processes.parent_process_id) as parent_process_id values(Processes.process_name) as process_name values(Processes.process) as process from datamodel=Endpoint.Processes where (Processes.parent_process_name=zoom.exe OR Processes.parent_process_name=zoom.us) by Processes.process_id Processes.dest +| `drop_dm_object_name(Processes)` +| lookup zoom_first_time_child_process dest as dest process_name as process_name OUTPUT firstTimeSeen +| where isnull(firstTimeSeen) OR firstTimeSeen > relative_time(now(), "`previously_seen_zoom_child_processes_window`") +| `security_content_ctime(firstTime)` +| table firstTime dest, process_id, process_name, parent_process_id, parent_process_name +|`first_time_seen_child_process_of_zoom_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Zoom_Child_Processes|Suspicious Zoom Child Processes]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You should run the baseline search `Previously Seen Zoom Child Processes - Initial` to build the initial table of child processes and hostnames for this search to work. You should also schedule at the same interval as this search the second baseline search `Previously Seen Zoom Child Processes - Update` to keep this table up to date and to age out old child processes. Please update the `previously_seen_zoom_child_processes_window` macro to adjust the time window. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +A new child process of zoom isn't malicious by that fact alone. Further investigation of the actions of the child process is needed to verify any malicious behavior is taken. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1068/zoom_child_process/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===First time seen running windows service=== +This search looks for the first and last time a Windows service is seen running in your environment. This table is then cached. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1569.002/ T1569.002] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== +`wineventlog_system` EventCode=7036 +| rex field=Message "The (?[-\(\)\s\w]+) service entered the (?\w+) state" +| where state="running" +| lookup previously_seen_running_windows_services service as service OUTPUT firstTimeSeen +| where isnull(firstTimeSeen) OR firstTimeSeen > relative_time(now(), `previously_seen_windows_services_window`) +| table _time dest service +| `first_time_seen_running_windows_service_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Service_Abuse|Windows Service Abuse]] + +* [[Documentation:ESSOC:stories:UseCase#Orangeworm_Attack_Group|Orangeworm Attack Group]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +While this search does not require you to adhere to Splunk CIM, you must be ingesting your Windows system event logs in order for this search to execute successfully. You should run the baseline search `Previously Seen Running Windows Services - Initial` to build the initial table of child processes and hostnames for this search to work. You should also schedule at the same interval as this search the second baseline search `Previously Seen Running Windows Services - Update` to keep this table up to date and to age out old Windows Services. Please update the `previously_seen_windows_services_window` macro to adjust the time window. Please ensure that the Splunk Add-on for Microsoft Windows is version 8.0.0 or above. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1569.002 +| Service Execution +| Execution +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +A previously unseen service is not necessarily malicious. Verify that the service is legitimate and that was installed by a legitimate process. + +====Reference==== + + +====Test Dataset==== + + +''version'': 4 +
+
+ +---- + +===First time seen command line argument=== +This search looks for command-line arguments that use a `/c` parameter to execute a command that has not previously been seen. This is an implementation on SPL2 of the rule `First time seen command line argument` by @bpatel. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059/ T1059], [https://attack.mitre.org/techniques// ], [https://attack.mitre.org/techniques/T1202/ T1202] +* '''Last Updated''': 2021-2-1 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), cmd_line_norm=lower(cmd_line), cmd_line_norm=replace(cmd_line_norm, /[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/, "GUID"), cmd_line_norm=replace(cmd_line_norm, /(?<=\s)+\\[^:]*(?=\\.*\.\w{3}(\s +|$)+)/, "\\PATH"), /* replaces " \\Something\\Something\\command.ext" => "PATH\\command.ext" */ cmd_line_norm=replace(cmd_line_norm, /\w:\\[^:]*(?=\\.*\.\w{3}(\s +|$)+)/, "\\PATH"), /* replaces "C:\\Something\\Something\\command.ext" => "PATH\\command.ext" */ cmd_line_norm=replace(cmd_line_norm, /\d+/, "N") +| where process_name="cmd.exe" AND match_regex(ucast(cmd_line, "string", ""), /.* \/[cC] .*/)=true +| select cmd_line, cmd_line_norm, timestamp, dest_device_id, dest_user_id +| first_time_event input_columns=["cmd_line_norm"] +| where first_time_cmd_line_norm +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be populating the endpoint data model for SSA and specifically the process_name and the process fields + +====Required field==== + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059 +| Command and Scripting Interpreter +| Execution +|- +| +| +| +|- +| T1202 +| Indirect Command Execution +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Legitimate programs can also use command-line arguments to execute. Please verify the command-line arguments to check what command/program is being executed. We recommend customizing the `first_time_seen_cmd_line_filter` macro to exclude legitimate parent_process_name + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Hiding files and directories with attrib exe=== +Attackers leverage an existing Windows binary, attrib.exe, to mark specific as hidden by using specific flags so that the victim does not see the file. The search looks for specific command-line arguments to detect the use of attrib.exe to hide files. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1222.001/ T1222.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=attrib.exe (Processes.process=*+h*) by Processes.parent_process Processes.process_name Processes.user Processes.dest +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `hiding_files_and_directories_with_attrib_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Defense_Evasion_Tactics|Windows Defense Evasion Tactics]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1222.001 +| Windows File and Directory Permissions Modification +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some applications and users may legitimately use attrib.exe to interact with the files. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1222.001/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Illegal access to user content via powersploit modules=== +This detection identifies access to PowerSploit modules that enable illegaly access user content, such as key logging, audio recording, screenshots, tapping into http and RDP sessions, etc. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021/ T1021], [https://attack.mitre.org/techniques/T1113/ T1113], [https://attack.mitre.org/techniques/T1123/ T1123], [https://attack.mitre.org/techniques/T1563/ T1563] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-HttpStatus/)=true OR match_regex(cmd_line, /(?i)Get-Keystrokes/)=true OR match_regex(cmd_line, /(?i)Get-MicrophoneAudio/)=true OR match_regex(cmd_line, /(?i)Get-NetRDPSession/)=true OR match_regex(cmd_line, /(?i)Get-TimedScreenshot/)=true OR match_regex(cmd_line, /(?i)Get-WebConfig/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021 +| Remote Services +| Lateral Movement +|- +| T1113 +| Screen Capture +| Collection +|- +| T1123 +| Audio Capture +| Collection +|- +| T1563 +| Remote Service Session Hijacking +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal account creation via powersploit modules=== +This detection identifies access to PowerSploit modules that create accounts illegaly. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1585/ T1585] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)New-DomainUser/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1585 +| Establish Accounts +| Resource Development +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal deletion of logs via mimikatz modules=== +This detection identifies access to PowerSploit modules that delete event logs. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070/ T1070] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)event::drop/)=true OR match_regex(cmd_line, /(?i)event::clear/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070 +| Indicator Removal on Host +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal enabling or disabling of accounts via dsinternals modules=== +This detection identifies use of DSInternals modules that enable or disable accounts illegaly. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Disable-ADDBAccount/)=true OR match_regex(cmd_line, /(?i)Enable-ADDBAccount/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal management of active directory elements and policies via dsinternals modules=== +This detection identifies use of DSInternals modules for illegal management of Active Directoty elements and policies. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1098/ T1098], [https://attack.mitre.org/techniques/T1207/ T1207], [https://attack.mitre.org/techniques/T1484/ T1484] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Remove-ADDBObject/)=true OR match_regex(cmd_line, /(?i)Set-ADDBDomainController/)=true OR match_regex(cmd_line, /(?i)Set-ADDBPrimaryGroup/)=true OR match_regex(cmd_line, /(?i)Set-LsaPolicyInformation/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1098 +| Account Manipulation +| Persistence +|- +| T1207 +| Rogue Domain Controller +| Defense Evasion +|- +| T1484 +| Domain Policy Modification +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal management of computers and active directory elements via powersploit modules=== +This detection identifies access to PowerSploit modules that enable illegal management of computers and Active Directory elements. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1098/ T1098], [https://attack.mitre.org/techniques/T1207/ T1207], [https://attack.mitre.org/techniques/T1484/ T1484] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Set-DomainObject/)=true OR match_regex(cmd_line, /(?i)Set-ADObject/)=true OR match_regex(cmd_line, /(?i)Set-DomainObjectOwner/)=true OR match_regex(cmd_line, /(?i)Set-MasterBootRecord/)=true ) + + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1098 +| Account Manipulation +| Persistence +|- +| T1207 +| Rogue Domain Controller +| Defense Evasion +|- +| T1484 +| Domain Policy Modification +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal privilege elevation and persistence via powersploit modules=== +This detection identifies access to PowerSploit modules that illegaly elevate general privileges or ensure persistence, e.g., enable manipulation of registry, task scheduling, persistent WMI, access to OS objects under desired identities. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053/ T1053], [https://attack.mitre.org/techniques/T1134/ T1134], [https://attack.mitre.org/techniques/T1548/ T1548] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Add-DomainObjectAcl/)=true OR match_regex(cmd_line, /(?i)Add-ObjectAcl/)=true OR match_regex(cmd_line, /(?i)Enable-Privilege/)=true OR match_regex(cmd_line, /(?i)New-ElevatedPersistenceOption/)=true OR match_regex(cmd_line, /(?i)New-UserPersistenceOption/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053 +| Scheduled Task/Job +| Execution, Persistence, Privilege Escalation +|- +| T1134 +| Access Token Manipulation +| Defense Evasion, Privilege Escalation +|- +| T1548 +| Abuse Elevation Control Mechanism +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal privilege elevation via mimikatz modules=== +This detection identifies use of Mimikatz modules for illegal privilege elevation. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1134/ T1134], [https://attack.mitre.org/techniques/T1548/ T1548] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)privilege::debug/)=true OR match_regex(cmd_line, /(?i)token::elevate/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1134 +| Access Token Manipulation +| Defense Evasion, Privilege Escalation +|- +| T1548 +| Abuse Elevation Control Mechanism +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal service and process control via mimikatz modules=== +This detection identifies use of Mimikatz modules for illegal control over services and processes, including the authentication service. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1055/ T1055], [https://attack.mitre.org/techniques/T1106/ T1106], [https://attack.mitre.org/techniques/T1569/ T1569] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)process::start/)=true OR match_regex(cmd_line, /(?i)service::\+/)=true OR match_regex(cmd_line, /(?i)service::\-/)=true OR match_regex(cmd_line, /(?i)service::start/)=true OR match_regex(cmd_line, /(?i)service::stop/)=true OR match_regex(cmd_line, /(?i)service::suspend/)=true OR match_regex(cmd_line, /(?i)misc::memssp/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1055 +| Process Injection +| Defense Evasion, Privilege Escalation +|- +| T1106 +| Native API +| Execution +|- +| T1569 +| System Services +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Illegal service and process control via powersploit modules=== +This detection identifies access to PowerSploit modules that enable illegal control of services and processes, such as installing or spoofing of malicious services, injecting malicious code in DLLs and EXEs, invoking shell code and WMI commands, modifying access to service objects, etc. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1055/ T1055], [https://attack.mitre.org/techniques/T1106/ T1106], [https://attack.mitre.org/techniques/T1569/ T1569] +* '''Last Updated''': 2020-11-09 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Install-SSP/)=true OR match_regex(cmd_line, /(?i)Set-CriticalProcess/)=true OR match_regex(cmd_line, /(?i)Install-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Restore-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Write-ServiceBinary/)=true OR match_regex(cmd_line, /(?i)Set-ServiceBinaryPath/)=true OR match_regex(cmd_line, /(?i)Invoke-ReflectivePEInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-DllInjection/)=true OR match_regex(cmd_line, /(?i)Invoke-ServiceAbuse/)=true OR match_regex(cmd_line, /(?i)Invoke-Shellcode/)=true OR match_regex(cmd_line, /(?i)Invoke-WScriptUACBypass/)=true OR match_regex(cmd_line, /(?i)Invoke-WmiCommand/)=true OR match_regex(cmd_line, /(?i)Write-HijackDll/)=true OR match_regex(cmd_line, /(?i)Add-ServiceDacl/)=true ) + + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1055 +| Process Injection +| Defense Evasion, Privilege Escalation +|- +| T1106 +| Native API +| Execution +|- +| T1569 +| System Services +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Kerberoasting spn request with rc4 encryption=== +This search detects a potential kerberoasting attack via service principal name requests + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1558.003/ T1558.003] +* '''Last Updated''': 2020-10-16 + +
+
+ +====Search==== +`wineventlog_security` EventCode=4769 Ticket_Options=0x40810000 Ticket_Encryption_Type=0x17 +| stats count min(_time) as firstTime max(_time) as lastTime by dest, service, service_id, Ticket_Encryption_Type, Ticket_Options +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `kerberoasting_spn_request_with_rc4_encryption_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Lateral_Movement|Lateral Movement]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, and include the windows security event logs that contain kerberos + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1558.003 +| Kerberoasting +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Older systems that support kerberos RC4 by default NetApp may generate false positives + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1208/T1208.md + +* https://www.trimarcsecurity.com/post/trimarcresearch-detecting-kerberoasting-activity + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1558.003/atomic_red_team/windows-security.log + + +''version'': 3 +
+
+ +---- + +===Macos - re-opened applications=== +This search looks for processes referencing the plist files that determine which applications are re-opened when a user reboots their machine. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2020-02-07 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process="*com.apple.loginwindow*" by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `macos___re_opened_applications_filter` + +====Associated Analytic Story==== + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest process data from your osquery deployed agents with the [splunk.conf](https://github.com/splunk/TA-osquery/blob/master/config/splunk.conf) pack enabled. Also the [TA-OSquery](https://github.com/splunk/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the data populate the Endpoint data model. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Installation + +* Command and Control + + +====Known False Positives==== +At this stage, there are no known false positives. During testing, no process events refering the com.apple.loginwindow.plist files were observed during normal operation of re-opening applications on reboot. Therefore, it can be asumed that any occurences of this in the process events would be worth investigating. In the event that the legitimate modification by the system of these files is in fact logged to the process log, then the process_name of that process can be added to an allow list. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Malicious powershell process - connect to internet with hidden window=== +This search looks for PowerShell processes started with parameters to modify the execution policy of the run, run in a hidden window, and connect to the Internet. This combination of command-line options is suspicious because it's overriding the default PowerShell execution policy, attempts to hide its activity from the user, and connects to the Internet. Deprecated becaue hidden is not needed when download file with System.Net.WebClient. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001] +* '''Last Updated''': 2020-11-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe Processes.process=*-WindowStyle* Processes.process=*hidden* Processes.process="*New-Object*" by Processes.user Processes.process_name Processes.parent_process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___connect_to_internet_with_hidden_window_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Malicious_PowerShell|Malicious PowerShell]] + +* [[Documentation:ESSOC:stories:UseCase#Possible_Backdoor_Activity_Associated_With_MUDCARP_Espionage_Campaigns|Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Legitimate process can have this combination of command-line options, but it's not common. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/hidden_powershell/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Malicious powershell process - encoded command=== +This search looks for PowerShell processes that have encoded the script within the command-line. Malware has been seen using this parameter, as it obfuscates the code and makes it relatively easy to pass a script on the command-line. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1027/ T1027] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = powershell.exe (Processes.process=*-EncodedCommand* OR Processes.process=*-enc*) by Processes.user Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___encoded_command_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Malicious_PowerShell|Malicious PowerShell]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1027 +| Obfuscated Files or Information +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +System administrators may use this option, but it's not common. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1027/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Malicious powershell process - execution policy bypass=== +This search looks for PowerShell processes started with parameters used to bypass the local execution policy for scripts. These parameters are often observed in attacks leveraging PowerShell scripts as they override the default PowerShell execution policy. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process_id) as process_id, values(Processes.parent_process_id) as parent_process_id values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe (Processes.process="* -ex*" OR Processes.process="* bypass *") by Processes.process_id, Processes.user, Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `malicious_powershell_process___execution_policy_bypass_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +There may be legitimate reasons to bypass the PowerShell execution policy. The PowerShell script being run with this parameter should be validated to ensure that it is legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/encoded_powershell/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Malicious powershell process with obfuscation techniques=== +This search looks for PowerShell processes launched with arguments that have characters indicative of obfuscation on the command-line. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001] +* '''Last Updated''': 2021-01-19 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest Processes.process +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval num_obfuscation = (mvcount(split(process,"`"))-1) + (mvcount(split(process, "^"))-1) + (mvcount(split(process, "'"))-1) +| `malicious_powershell_process_with_obfuscation_techniques_filter` +| search num_obfuscation > 10 + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Malicious_PowerShell|Malicious PowerShell]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +These characters might be legitimately on the command-line, but it is not common. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/obfuscated_powershell/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Monitor registry keys for print monitors=== +This search looks for registry activity associated with modifications to the registry key `HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors`. In this scenario, an attacker can load an arbitrary .dll into the print-monitor registry by giving the full path name to the after.dll. The system will execute the .dll with elevated (SYSTEM) permissions and will persist after reboot. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1547.010/ T1547.010] +* '''Last Updated''': 2020-11-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.action=modified AND Registry.registry_path="*CurrentControlSet\\Control\\Print\\Monitors*" by Registry.dest, Registry.registry_key_name Registry.user Registry.registry_path Registry.registry_value_name Registry.action +| `drop_dm_object_name(Registry)` +| `monitor_registry_keys_for_print_monitors_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or via other endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report registry modifications. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1547.010 +| Port Monitors +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +You will encounter noise from legitimate print-monitor registry entries. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1547.010/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===More than usual number of lolbas applications in short time period=== +Attacker activity may compromise executing several LOLBAS applications in conjunction to accomplish their objectives. We are looking for more than usual LOLBAS applications over a window of time, by building profiles per machine. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059/ T1059], [https://attack.mitre.org/techniques/T1053/ T1053] +* '''Last Updated''': 2020-08-25 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval device=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| where process_name=="regsvcs.exe" OR process_name=="ftp.exe" OR process_name=="dfsvc.exe" OR process_name=="rasautou.exe" OR process_name=="schtasks.exe" OR process_name=="xwizard.exe" OR process_name=="findstr.exe" OR process_name=="esentutl.exe" OR process_name=="cscript.exe" OR process_name=="reg.exe" OR process_name=="csc.exe" OR process_name=="atbroker.exe" OR process_name=="print.exe" OR process_name=="pcwrun.exe" OR process_name=="vbc.exe" OR process_name=="rpcping.exe" OR process_name=="wsreset.exe" OR process_name=="ilasm.exe" OR process_name=="certutil.exe" OR process_name=="replace.exe" OR process_name=="mshta.exe" OR process_name=="bitsadmin.exe" OR process_name=="wscript.exe" OR process_name=="ieexec.exe" OR process_name=="cmd.exe" OR process_name=="microsoft.workflow.compiler.exe" OR process_name=="runscripthelper.exe" OR process_name=="makecab.exe" OR process_name=="forfiles.exe" OR process_name=="desktopimgdownldr.exe" OR process_name=="control.exe" OR process_name=="msbuild.exe" OR process_name=="register-cimprovider.exe" OR process_name=="tttracer.exe" OR process_name=="ie4uinit.exe" OR process_name=="sc.exe" OR process_name=="bash.exe" OR process_name=="hh.exe" OR process_name=="cmstp.exe" OR process_name=="mmc.exe" OR process_name=="jsc.exe" OR process_name=="scriptrunner.exe" OR process_name=="odbcconf.exe" OR process_name=="extexport.exe" OR process_name=="msdt.exe" OR process_name=="diskshadow.exe" OR process_name=="extrac32.exe" OR process_name=="eventvwr.exe" OR process_name=="mavinject.exe" OR process_name=="regasm.exe" OR process_name=="gpscript.exe" OR process_name=="rundll32.exe" OR process_name=="regsvr32.exe" OR process_name=="regedit.exe" OR process_name=="msiexec.exe" OR process_name=="gfxdownloadwrapper.exe" OR process_name=="presentationhost.exe" OR process_name=="regini.exe" OR process_name=="wmic.exe" OR process_name=="runonce.exe" OR process_name=="syncappvpublishingserver.exe" OR process_name=="verclsid.exe" OR process_name=="psr.exe" OR process_name=="infdefaultinstall.exe" OR process_name=="explorer.exe" OR process_name=="expand.exe" OR process_name=="installutil.exe" OR process_name=="netsh.exe" OR process_name=="wab.exe" OR process_name=="dnscmd.exe" OR process_name=="at.exe" OR process_name=="pcalua.exe" OR process_name=="cmdkey.exe" OR process_name=="msconfig.exe" +| stats count(process_name) as lolbas_counter by device,span(timestamp, 300s) +| eval lolbas_counter=lolbas_counter*1.0 +| rename window_end as timestamp +| adaptive_threshold algorithm="quantile" value="lolbas_counter" entity="device" window=2419200000L +| where label AND quantile>0.99 +| eval start_time = window_start, end_time = timestamp, entities = mvappend(device), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +Collect endpoint data such as sysmon or 4688 events. + +====Required field==== + +* dest_device_id + +* _time + +* process_name + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059 +| Command and Scripting Interpreter +| Execution +|- +| T1053 +| Scheduled Task/Job +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Some administrative tasks may involve multiple use of LOLBAS applications in a short period of time. This might trigger false positives at the beginning when it hasn't collected yet enough data to construct the baseline. + + +====Reference==== + +* https://github.com/LOLBAS-Project/LOLBAS/tree/master/yml/OSBinaries + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Nltest domain trust discovery=== +This search looks for the execution of `nltest.exe` with command-line arguments utilized to query for Domain Trust information. Two arguments `/domain trusts`, returns a list of trusted domains, and `/all_trusts`, returns all trusted domains. Red Teams and adversaries alike use NLTest.exe to enumerate the current domain to assist with further understanding where to pivot next. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1482/ T1482] +* '''Last Updated''': 2021-01-25 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=nltest.exe OR Processes.process_name!=nltest.exe) (Processes.process=*/domain_trusts* OR Processes.process=*/all_trusts*) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `nltest_domain_trust_discovery_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1482 +| Domain Trust Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Administrators may use nltest for troubleshooting purposes, otherwise, rarely used. + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1482/T1482.md + +* https://malware.news/t/lets-learn-trickbot-implements-network-collector-module-leveraging-cmd-wmi-ldap/19104 + +* https://attack.mitre.org/techniques/T1482/ + +* https://www.owasp.org/images/4/4b/Red_Team_Operating_in_a_Modern_Environment.pdf + +* https://ss64.com/nt/nltest.html + +* https://redcanary.com/threat-detection-report/techniques/domain-trust-discovery/ + +* https://thedfirreport.com/2020/10/08/ryuks-return/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1482/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Ntdsutil export ntds=== +Monitor for signs that Ntdsutil is being used to Extract Active Directory database - NTDS.dit, typically used for offline password cracking. It may be used in normal circumstances with no command line arguments or shorthand variations of more common arguments. Ntdsutil.exe is typically seen run on a Windows Server. Typical command used to dump ntds.dit \ +ntdsutil "ac i ntds" "ifm" "create full C:\Temp" q q \ +This technique uses "Install from Media" (IFM), which will extract a copy of the Active Directory database. A successful export of the Active Directory database will yield a file modification named ntds.dit to the destination. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2021-01-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=ntdsutil.exe Processes.process=*ntds* Processes.process=*create*) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `ntdsutil_export_ntds_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Credential_Dumping|Credential Dumping]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Highly possible Server Administrators will troubleshoot with ntdsutil.exe, generating false positives. + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.003/T1003.003.md#atomic-test-3---dump-active-directory-database-with-ntdsutil + +* https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc753343(v=ws.11) + +* https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf + +* https://strontic.github.io/xcyclopedia/library/vss_ps.dll-97B15BDAE9777F454C9A6BA25E938DB3.html + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.003/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Overwriting accessibility binaries=== +Microsoft Windows contains accessibility features that can be launched with a key combination before a user has logged in. An adversary can modify or replace these programs so they can get a command prompt or backdoor without logging in to the system. This search looks for modifications to these binaries. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.008/ T1546.008] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_path) as file_path from datamodel=Endpoint.Filesystem where (Filesystem.file_path=*\\Windows\\System32\\sethc.exe* OR Filesystem.file_path=*\\Windows\\System32\\utilman.exe* OR Filesystem.file_path=*\\Windows\\System32\\osk.exe* OR Filesystem.file_path=*\\Windows\\System32\\Magnify.exe* OR Filesystem.file_path=*\\Windows\\System32\\Narrator.exe* OR Filesystem.file_path=*\\Windows\\System32\\DisplaySwitch.exe* OR Filesystem.file_path=*\\Windows\\System32\\AtBroker.exe*) by Filesystem.file_name Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `overwriting_accessibility_binaries_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Privilege_Escalation|Windows Privilege Escalation]] + + +====How To Implement==== +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.008 +| Accessibility Features +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Microsoft may provide updates to these binaries. Verify that these changes do not correspond with your normal software update cycle. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.008/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Probing access with stolen credentials via powersploit modules=== +This detection identifies use of PowerSploit modules that facilitate access probing with admin credentials as well as probing access to system services. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-04 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Test-AdminAccess/)=true OR match_regex(cmd_line, /(?i)Invoke-CheckLocalAdminAccess/)=true OR match_regex(cmd_line, /(?i)Test-ServiceDaclPermission/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_user_id + +* dest_device_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Process creating lnk file in suspicious location=== +This search looks for a process launching an `*.lnk` file under `C:\User*` or `*\Local\Temp\*`. This is common behavior used by various spear phishing tools. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.002/ T1566.002] +* '''Last Updated''': 2021-01-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.file_name="*.lnk" AND Filesystem.file_path="C:\\Temp*" by _time span=1h Filesystem.process_id Filesystem.file_name Filesystem.file_path Filesystem.file_hash Filesystem.user +| `drop_dm_object_name(Filesystem)` +| rename process_id as lnk_pid +| join lnk_pid, _time [ +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Processes where Processes.process_name=* by _time span=1h Processes.parent_process_id Processes.process_id Processes.process_name Processes.dest Processes.process_path Processes.process +| `drop_dm_object_name(Processes)` +| rename parent_process_id as lnk_pid +| fields _time lnk_pid process_id dest process_name process_path process] +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table firstTime, lastTime, lnk_pid, process_id, user, dest, file_name, file_path, process_name, process, process_path, file_hash +| `process_creating_lnk_file_in_suspicious_location_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Phishing_Payloads|Phishing Payloads]] + + +====How To Implement==== +You must be ingesting data that records filesystem and process activity from your hosts to populate the Endpoint data model. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.002 +| Spearphishing Link +| Initial Access +|} + + +====Kill Chain Phase==== + +* Installation + +* Actions on Objectives + + +====Known False Positives==== +This detection should yield little or no false positive results. It is uncommon for LNK files to be executed from temporary or user directories. + +====Reference==== + +* https://attack.mitre.org/techniques/T1566/001/ + +* https://www.trendmicro.com/en_us/research/17/e/rising-trend-attackers-using-lnk-files-download-malware.html + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1566.002/lnk_file_temp_folder/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Process execution via wmi=== +This search looks for processes launched via WMI. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2020-03-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.parent_process_name = *WmiPrvSE.exe by Processes.user Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `process_execution_via_wmi_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, administrators may use wmi to execute commands for legitimate purposes. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Processes tapping keyboard events=== +This search looks for processes in an MacOS system that is tapping keyboard events in MacOS, and essentially monitoring all keystrokes made by a user. This is a common technique used by RATs to log keystrokes from a victim, although it can also be used by legitimate processes like Siri to react on human input + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2019-01-25 + +
+
+ +====Search==== + +| from datamodel Alerts.Alerts +| search app=osquery:results name=pack_osx-attacks_Keyboard_Event_Taps +| rename columns.cmdline as cmd, columns.name as process_name, columns.pid as process_id +| dedup host,process_name +| table host,process_name, cmd, process_id +| `processes_tapping_keyboard_events_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#ColdRoot_MacOS_RAT|ColdRoot MacOS RAT]] + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest data from your osquery deployed agents with the [osx-attacks.conf](https://github.com/facebook/osquery/blob/experimental/packs/osx-attacks.conf#L599) pack enabled. Also the [TA-OSquery](https://github.com/d1vious/TA-osquery) must be deployed across your indexers and universal forwarders in order to have the osquery data populate the Alerts data model. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +There might be some false positives as keyboard event taps are used by processes like Siri and Zoom video chat, for some good examples of processes to exclude please see [this](https://github.com/facebook/osquery/pull/5345#issuecomment-454639161) comment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Processes launching netsh=== +This search looks for processes launching netsh.exe. Netsh is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh can be used as a persistence proxy technique to execute a helper DLL when netsh.exe is executed. In this search, we are looking for processes spawned by netsh.exe and executing commands via the command line. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.004/ T1562.004] +* '''Last Updated''': 2020-07-10 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) AS Processes.process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*netsh* by Processes.parent_process_name Processes.parent_process Processes.process_name Processes.user Processes.dest +|`drop_dm_object_name("Processes")` +|`security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`processes_launching_netsh_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Netsh_Abuse|Netsh Abuse]] + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.004 +| Disable or Modify System Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some VPN applications are known to launch netsh.exe. Outside of these instances, it is unusual for an executable to launch netsh.exe and run commands. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.004/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Rare parent-child process relationship=== +An attacker may use LOLBAS tools spawned from vulnerable applications not typically used by system administrators. This search leverages the Splunk Streaming ML DSP plugin to find rare parent/child relationships. The list of application has been extracted from https://github.com/LOLBAS-Project/LOLBAS/tree/master/yml/OSBinaries + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1203/ T1203], [https://attack.mitre.org/techniques/T1059/ T1059], [https://attack.mitre.org/techniques/T1053/ T1053], [https://attack.mitre.org/techniques/T1072/ T1072] +* '''Last Updated''': 2020-08-13 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval parent_process=lower(ucast(map_get(input_event, "parent_process_name"), "string", null)), parent_process_name=mvindex(split(parent_process, "\\"), -1), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null) +| where parent_process_name!=null +| select parent_process_name, process_name, timestamp, dest_device_id, dest_user_id +| conditional_anomaly conditional="parent_process_name" target="process_name" +| rename output as input +| where input < 1 +| adaptive_threshold algorithm="quantile" entity="parent_process_name" window=604800000L +| where label AND quantile<0.1 AND (process_name="powershell.exe" OR process_name="regsvcs.exe" OR process_name="ftp.exe" OR process_name="dfsvc.exe" OR process_name="rasautou.exe" OR process_name="schtasks.exe" OR process_name="xwizard.exe" OR process_name="findstr.exe" OR process_name="esentutl.exe" OR process_name="cscript.exe" OR process_name="reg.exe" OR process_name="csc.exe" OR process_name="atbroker.exe" OR process_name="print.exe" OR process_name="pcwrun.exe" OR process_name="vbc.exe" OR process_name="rpcping.exe" OR process_name="wsreset.exe" OR process_name="ilasm.exe" OR process_name="certutil.exe" OR process_name="replace.exe" OR process_name="mshta.exe" OR process_name="bitsadmin.exe" OR process_name="wscript.exe" OR process_name="ieexec.exe" OR process_name="cmd.exe" OR process_name="microsoft.workflow.compiler.exe" OR process_name="runscripthelper.exe" OR process_name="makecab.exe" OR process_name="forfiles.exe" OR process_name="desktopimgdownldr.exe" OR process_name="control.exe" OR process_name="msbuild.exe" OR process_name="register-cimprovider.exe" OR process_name="tttracer.exe" OR process_name="ie4uinit.exe" OR process_name="sc.exe" OR process_name="bash.exe" OR process_name="hh.exe" OR process_name="cmstp.exe" OR process_name="mmc.exe" OR process_name="jsc.exe" OR process_name="scriptrunner.exe" OR process_name="odbcconf.exe" OR process_name="extexport.exe" OR process_name="msdt.exe" OR process_name="diskshadow.exe" OR process_name="extrac32.exe" OR process_name="eventvwr.exe" OR process_name="mavinject.exe" OR process_name="regasm.exe" OR process_name="gpscript.exe" OR process_name="rundll32.exe" OR process_name="regsvr32.exe" OR process_name="regedit.exe" OR process_name="msiexec.exe" OR process_name="gfxdownloadwrapper.exe" OR process_name="presentationhost.exe" OR process_name="regini.exe" OR process_name="wmic.exe" OR process_name="runonce.exe" OR process_name="syncappvpublishingserver.exe" OR process_name="verclsid.exe" OR process_name="psr.exe" OR process_name="infdefaultinstall.exe" OR process_name="explorer.exe" OR process_name="expand.exe" OR process_name="installutil.exe" OR process_name="netsh.exe" OR process_name="wab.exe" OR process_name="dnscmd.exe" OR process_name="at.exe" OR process_name="pcalua.exe" OR process_name="cmdkey.exe" OR process_name="msconfig.exe") + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +Collect endpoint data such as sysmon or 4688 events. + +====Required field==== + +* process_name + +* parent_process_name + +* _time + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1203 +| Exploitation for Client Execution +| Execution +|- +| T1059 +| Command and Scripting Interpreter +| Execution +|- +| T1053 +| Scheduled Task/Job +| Execution, Persistence, Privilege Escalation +|- +| T1072 +| Software Deployment Tools +| Execution, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Some custom tools used by admins could be used rarely to launch remotely applications. This might trigger false positives at the beginning when it hasn't collected yet enough data to construct the baseline. + + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to accounts groups and policies via powersploit modules=== +This detection identifies access to PowerSploit modules that discover accounts, groups and policies that can be accessed or taken over. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1087/ T1087], [https://attack.mitre.org/techniques/T1484/ T1484] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainLocalGroupMember/)=true OR match_regex(cmd_line, /(?i)Invoke-EnumerateLocalAdmin/)=true OR match_regex(cmd_line, /(?i)Find-DomainUserEvent/)=true OR match_regex(cmd_line, /(?i)Invoke-EventHunter/)=true OR match_regex(cmd_line, /(?i)Find-DomainUserLocation/)=true OR match_regex(cmd_line, /(?i)Invoke-UserHunter/)=true OR match_regex(cmd_line, /(?i)Get-DomainForeignGroupMember/)=true OR match_regex(cmd_line, /(?i)Find-ForeignGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainForeignUser/)=true OR match_regex(cmd_line, /(?i)Find-ForeignUser/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPO/)=true OR match_regex(cmd_line, /(?i)Get-NetGPO/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOComputerLocalGroupMapping/)=true OR match_regex(cmd_line, /(?i)Find-GPOComputerAdmin/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOLocalGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetGPOGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainGPOUserLocalGroupMapping/)=true OR match_regex(cmd_line, /(?i)Find-GPOLocation/)=true OR match_regex(cmd_line, /(?i)Get-DomainGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetGroup/)=true OR match_regex(cmd_line, /(?i)Get-DomainGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-NetGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-DomainManagedSecurityGroup/)=true OR match_regex(cmd_line, /(?i)Find-ManagedSecurityGroups/)=true OR match_regex(cmd_line, /(?i)Get-DomainOU/)=true OR match_regex(cmd_line, /(?i)Get-NetOU/)=true OR match_regex(cmd_line, /(?i)Get-DomainUser/)=true OR match_regex(cmd_line, /(?i)Get-NetUser/)=true OR match_regex(cmd_line, /(?i)Get-DomainUserEvent/)=true OR match_regex(cmd_line, /(?i)Get-UserEvent/)=true OR match_regex(cmd_line, /(?i)Get-NetLocalGroup/)=true OR match_regex(cmd_line, /(?i)Get-NetLocalGroupMember/)=true OR match_regex(cmd_line, /(?i)Get-NetLoggedon/)=true OR match_regex(cmd_line, /(?i)Get-RegLoggedOn/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegLastLoggedOn/)=true OR match_regex(cmd_line, /(?i)Get-LastLoggedOn/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1087 +| Account Discovery +| Discovery +|- +| T1484 +| Domain Policy Modification +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to accounts and groups via mimikatz modules=== +This detection identifies use of Mimikatz modules for discovery of accounts and groups and access to them. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1087/ T1087], [https://attack.mitre.org/techniques/T1484/ T1484] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::user/)=true OR match_regex(cmd_line, /(?i)net::group/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1087 +| Account Discovery +| Discovery +|- +| T1484 +| Domain Policy Modification +| Defense Evasion, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to active directoty infrastructure via powersploit modules=== +This detection identifies access to PowerSploit modules for reconnaissance and access to elements of Active Directory infrastructure, such as domain identifiers, AD sites and forests, and trust relations. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1199/ T1199], [https://attack.mitre.org/techniques/T1482/ T1482], [https://attack.mitre.org/techniques/T1590/ T1590], [https://attack.mitre.org/techniques/T1591/ T1591], [https://attack.mitre.org/techniques/T1595/ T1595] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-DomainSID/)=true OR match_regex(cmd_line, /(?i)Get-DomainSite/)=true OR match_regex(cmd_line, /(?i)Get-NetSite/)=true OR match_regex(cmd_line, /(?i)Get-DomainSubnet/)=true OR match_regex(cmd_line, /(?i)Get-NetSubnet/)=true OR match_regex(cmd_line, /(?i)Get-DomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-NetDomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-DomainTrustMapping/)=true OR match_regex(cmd_line, /(?i)Invoke-MapDomainTrust/)=true OR match_regex(cmd_line, /(?i)Get-Forest/)=true OR match_regex(cmd_line, /(?i)Get-NetForest/)=true OR match_regex(cmd_line, /(?i)Get-ForestDomain/)=true OR match_regex(cmd_line, /(?i)Get-NetForestDomain/)=true OR match_regex(cmd_line, /(?i)Get-ForestGlobalCatalog/)=true OR match_regex(cmd_line, /(?i)Get-NetForestCatalog/)=true OR match_regex(cmd_line, /(?i)Get-ForestTrust/)=true OR match_regex(cmd_line, /(?i)Get-NetForestTrust/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1199 +| Trusted Relationship +| Initial Access +|- +| T1482 +| Domain Trust Discovery +| Discovery +|- +| T1590 +| Gather Victim Network Information +| Reconnaissance +|- +| T1591 +| Gather Victim Org Information +| Reconnaissance +|- +| T1595 +| Active Scanning +| Reconnaissance +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to computers and domains via powersploit modules=== +This detection identifies access to PowerSploit modules that discover computers, servers and domains that can be accessed or taken over. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1592/ T1592], [https://attack.mitre.org/techniques/T1590/ T1590], [https://attack.mitre.org/techniques/T1087/ T1087] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-ComputerDetail/)=true OR match_regex(cmd_line, /(?i)Get-Domain/)=true OR match_regex(cmd_line, /(?i)Get-NetDomain/)=true OR match_regex(cmd_line, /(?i)Get-DomainComputer/)=true OR match_regex(cmd_line, /(?i)Get-NetComputer/)=true OR match_regex(cmd_line, /(?i)Get-DomainController/)=true OR match_regex(cmd_line, /(?i)Get-NetDomainController/)=true OR match_regex(cmd_line, /(?i)Get-DomainFileServer/)=true OR match_regex(cmd_line, /(?i)Get-NetFileServer/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1592 +| Gather Victim Host Information +| Reconnaissance +|- +| T1590 +| Gather Victim Network Information +| Reconnaissance +|- +| T1087 +| Account Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to computers via mimikatz modules=== +This detection identifies use of Mimikatz modules for discovery of computers and servers and access to them. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1592/ T1592] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::ServerInfo/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1592 +| Gather Victim Host Information +| Reconnaissance +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to operating system elements via powersploit modules=== +This detection identifies access to PowerSploit modules that discover and access operating system elements, such as processes, services, registry locations, security packages and files. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1007/ T1007], [https://attack.mitre.org/techniques/T1012/ T1012], [https://attack.mitre.org/techniques/T1046/ T1046], [https://attack.mitre.org/techniques/T1047/ T1047], [https://attack.mitre.org/techniques/T1057/ T1057], [https://attack.mitre.org/techniques/T1083/ T1083], [https://attack.mitre.org/techniques/T1518/ T1518], [https://attack.mitre.org/techniques/T1592.002/ T1592.002] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainProcess/)=true OR match_regex(cmd_line, /(?i)Invoke-ProcessHunter/)=true OR match_regex(cmd_line, /(?i)Get-ServiceDetail/)=true OR match_regex(cmd_line, /(?i)Get-WMIProcess/)=true OR match_regex(cmd_line, /(?i)Get-NetProcess/)=true OR match_regex(cmd_line, /(?i)Get-SecurityPackage/)=true OR match_regex(cmd_line, /(?i)Find-DomainObjectPropertyOutlier/)=true OR match_regex(cmd_line, /(?i)Get-DomainObject/)=true OR match_regex(cmd_line, /(?i)Get-ADObject/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegMountedDrive/)=true OR match_regex(cmd_line, /(?i)Get-RegistryMountedDrive/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1007 +| System Service Discovery +| Discovery +|- +| T1012 +| Query Registry +| Discovery +|- +| T1046 +| Network Service Scanning +| Discovery +|- +| T1047 +| Windows Management Instrumentation +| Execution +|- +| T1057 +| Process Discovery +| Discovery +|- +| T1083 +| File and Directory Discovery +| Discovery +|- +| T1518 +| Software Discovery +| Discovery +|- +| T1592.002 +| Software +| Reconnaissance +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to processes and services via mimikatz modules=== +This detection identifies use of Mimikatz modules for discovery and access to services and processes. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1007/ T1007], [https://attack.mitre.org/techniques/T1046/ T1046], [https://attack.mitre.org/techniques/T1057/ T1057] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)process::list/)=true OR match_regex(cmd_line, /(?i)service::list/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1007 +| System Service Discovery +| Discovery +|- +| T1046 +| Network Service Scanning +| Discovery +|- +| T1057 +| Process Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to shared resources via mimikatz modules=== +This detection identifies use of Mimikatz modules for discovery and access to network shares. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1135/ T1135], [https://attack.mitre.org/techniques/T1039/ T1039] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)net::share/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1135 +| Network Share Discovery +| Discovery +|- +| T1039 +| Data from Network Shared Drive +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance and access to shared resources via powersploit modules=== +This detection identifies access to PowerSploit modules that discover and access network and distributed file system shares. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1135/ T1135], [https://attack.mitre.org/techniques/T1039/ T1039] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-DomainShare/)=true OR match_regex(cmd_line, /(?i)Invoke-ShareFinder/)=true OR match_regex(cmd_line, /(?i)Find-InterestingDomainShareFile/)=true OR match_regex(cmd_line, /(?i)Invoke-FileFinder/)=true OR match_regex(cmd_line, /(?i)Find-InterestingFile/)=true OR match_regex(cmd_line, /(?i)Get-DomainDFSShare/)=true OR match_regex(cmd_line, /(?i)Get-DFSshare/)=true OR match_regex(cmd_line, /(?i)Get-NetShare/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1135 +| Network Share Discovery +| Discovery +|- +| T1039 +| Data from Network Shared Drive +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of access and persistence opportunities via powersploit modules=== +This detection identifies use of PowerSploit modules that discover opportunities for malicious access and persistence. Some examples include access to admin accounts, weak access control policies, landing paths for dropping malicious software or data to exfiltrate, registry locations to land autorun parameters, task scheduling opportunities, as well as services and system files that can be compromised. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053/ T1053], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1543/ T1543], [https://attack.mitre.org/techniques/T1547/ T1547], [https://attack.mitre.org/techniques/T1574/ T1574] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-LocalAdminAccess/)=true OR match_regex(cmd_line, /(?i)Find-InterestingDomainAcl/)=true OR match_regex(cmd_line, /(?i)Invoke-ACLScanner/)=true OR match_regex(cmd_line, /(?i)Find-PathDLLHijack/)=true OR match_regex(cmd_line, /(?i)Find-ProcessDLLHijack/)=true OR match_regex(cmd_line, /(?i)Get-DomainObjectAcl/)=true OR match_regex(cmd_line, /(?i)Get-ObjectAcl/)=true OR match_regex(cmd_line, /(?i)Get-DomainPolicy/)=true OR match_regex(cmd_line, /(?i)Get-ModifiablePath/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableRegistryAutoRun/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableScheduledTaskFile/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableService/)=true OR match_regex(cmd_line, /(?i)Get-ModifiableServiceFile/)=true OR match_regex(cmd_line, /(?i)Get-PathAcl/)=true OR match_regex(cmd_line, /(?i)Get-UnattendedInstallFile/)=true OR match_regex(cmd_line, /(?i)Get-UnquotedService/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053 +| Scheduled Task/Job +| Execution, Persistence, Privilege Escalation +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1543 +| Create or Modify System Process +| Persistence, Privilege Escalation +|- +| T1547 +| Boot or Logon Autostart Execution +| Persistence, Privilege Escalation +|- +| T1574 +| Hijack Execution Flow +| Defense Evasion, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of connectivity via powersploit modules=== +This detection identifies access to PowerSploit modules for reconnaissance of connectivity. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1135/ T1135], [https://attack.mitre.org/techniques/T1039/ T1039] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Get-DomainDNSRecord/)=true OR match_regex(cmd_line, /(?i)Get-DNSRecord/)=true OR match_regex(cmd_line, /(?i)Get-DomainDNSZone/)=true OR match_regex(cmd_line, /(?i)Get-DNSZone/)=true OR match_regex(cmd_line, /(?i)Invoke-ReverseDnsLookup/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegCachedRDPConnection/)=true OR match_regex(cmd_line, /(?i)Get-CachedRDPConnection/)=true OR match_regex(cmd_line, /(?i)Get-WMIRegProxy/)=true OR match_regex(cmd_line, /(?i)Get-Proxy/)=true OR match_regex(cmd_line, /(?i)Invoke-Portscan/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1135 +| Network Share Discovery +| Discovery +|- +| T1039 +| Data from Network Shared Drive +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of credential stores and services via mimikatz modules=== +This detection identifies reconnaissance of credential stores and use of CryptoAPI services by Mimikatz modules. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1589.001/ T1589.001], [https://attack.mitre.org/techniques/T1590.001/ T1590.001], [https://attack.mitre.org/techniques/T1590.003/ T1590.003], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)crypto::capi/)=true OR match_regex(cmd_line, /(?i)crypto::cng/)=true OR match_regex(cmd_line, /(?i)crypto::providers/)=true OR match_regex(cmd_line, /(?i)crypto::stores/)=true OR match_regex(cmd_line, /(?i)crypto::sc/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1589.001 +| Credentials +| Reconnaissance +|- +| T1590.001 +| Domain Properties +| Reconnaissance +|- +| T1590.003 +| Network Trust Dependencies +| Reconnaissance +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of defensive tools via powersploit modules=== +This detection identifies use of PowerSploit modules for assessment of presence of defensive tools. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1595.002/ T1595.002], [https://attack.mitre.org/techniques/T1592.002/ T1592.002] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Find-AVSignature/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1595.002 +| Vulnerability Scanning +| Reconnaissance +|- +| T1592.002 +| Software +| Reconnaissance +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of privilege escalation opportunities via powersploit modules=== +This detection identifies use of PowerSploit modules for assessment of privilege escalation opportunities. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Invoke-PrivescAudit/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reconnaissance of process or service hijacking opportunities via mimikatz modules=== +This detection identifies use of Mimikatz modules for discovery of process or service hijacking opportunities via Microsoft Detours compatibility. Microsoft Detours is an open source library for intercepting, monitoring and instrumenting binary functions on Microsoft Windows. Detours intercepts Win32 functions by re-writing the in-memory code for target functions. The Detours package also contains utilities to attach arbitrary DLLs and data segments called payloads to any Win32 binary. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1543/ T1543], [https://attack.mitre.org/techniques/T1055/ T1055], [https://attack.mitre.org/techniques/T1574/ T1574] +* '''Last Updated''': 2020-11-05 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)misc::detours/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* _time + +* process + +* dest_device_id + +* dest_user_id + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1543 +| Create or Modify System Process +| Persistence, Privilege Escalation +|- +| T1055 +| Process Injection +| Defense Evasion, Privilege Escalation +|- +| T1574 +| Hijack Execution Flow +| Defense Evasion, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + +* https://en.wikipedia.org/wiki/Microsoft_Detours + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Reg exe manipulating windows services registry keys=== +The search looks for reg.exe modifying registry keys that define Windows services and their configurations. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1574.011/ T1574.011] +* '''Last Updated''': 2020-11-26 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name values(Processes.user) as user FROM datamodel=Endpoint.Processes where Processes.process_name=reg.exe Processes.process=*reg* Processes.process=*add* Processes.process=*Services* by Processes.process_id Processes.dest Processes.process +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `reg_exe_manipulating_windows_services_registry_keys_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Service_Abuse|Windows Service Abuse]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1574.011 +| Services Registry Permissions Weakness +| Defense Evasion, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Installation + + +====Known False Positives==== +It is unusual for a service to be created or modified by directly manipulating the registry. However, there may be legitimate instances of this behavior. It is important to validate and investigate, as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1574.011/change_registry_path_service/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Registry keys used for persistence=== +The search looks for modifications to registry keys that can be used to launch an application or service at system startup. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1547.001/ T1547.001] +* '''Last Updated''': 2020-11-27 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name values(Registry.registry_path) as registry_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where (Registry.registry_path=*currentversion\\run* OR Registry.registry_path=*currentVersion\\Windows\\Appinit_Dlls* OR Registry.registry_path=CurrentVersion\\Winlogon\\Shell* OR Registry.registry_path=*CurrentVersion\\Winlogon\\Userinit* OR Registry.registry_path=*CurrentVersion\\Winlogon\\VmApplet* OR Registry.registry_path=*currentversion\\policies\\explorer\\run* OR Registry.registry_path=*currentversion\\runservices* OR Registry.registry_path=*\\CurrentControlSet\\Control\\Lsa\\* OR Registry.registry_path="*Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options*" OR Registry.registry_path=HKLM\\SOFTWARE\\Microsoft\\Netsh\\*) by Registry.dest Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_used_for_persistence_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + +* [[Documentation:ESSOC:stories:UseCase#Possible_Backdoor_Activity_Associated_With_MUDCARP_Espionage_Campaigns|Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +There are many legitimate applications that must execute on system startup and will use these registry keys to accomplish that task. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1547.001/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Registry keys used for privilege escalation=== +This search looks for modifications to registry keys that can be used to elevate privileges. The registry keys under "Image File Execution Options" are used to intercept calls to an executable and can be used to attach malicious binaries to benign system binaries. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.012/ T1546.012] +* '''Last Updated''': 2020-11-27 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where (Registry.registry_path="*Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options*") AND (Registry.registry_key_name=GlobalFlag OR Registry.registry_key_name=Debugger) by Registry.dest Registry.user Registry.registry_path Registry.registry_key_name +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_used_for_privilege_escalation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Privilege_Escalation|Windows Privilege Escalation]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Cloud_Federated_Credential_Abuse|Cloud Federated Credential Abuse]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records registry activity from your hosts to populate the endpoint data model in the registry node. This is typically populated via endpoint detection-and-response product, such as Carbon Black, or endpoint data sources, such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.012 +| Image File Execution Options Injection +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +There are many legitimate applications that must execute upon system startup and will use these registry keys to accomplish that task. + +====Reference==== + +* https://blog.malwarebytes.com/101/2015/12/an-introduction-to-image-file-execution-options/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.012/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Registry keys for creating shim databases=== +This search looks for registry activity associated with application compatibility shims, which can be leveraged by attackers for various nefarious purposes. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.011/ T1546.011] +* '''Last Updated''': 2020-11-26 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Registry.registry_key_name) as registry_key_name min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Registry where Registry.registry_path=*CurrentVersion\\AppCompatFlags\\Custom* OR Registry.registry_path=*CurrentVersion\\AppCompatFlags\\InstalledSDB* by Registry.dest Registry.user +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name(Registry)` +| `registry_keys_for_creating_shim_databases_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Windows_Registry_Activities|Suspicious Windows Registry Activities]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +To successfully implement this search, you must populate the Change_Analysis data model. This is typically populated via endpoint detection and response product, such as Carbon Black or other endpoint data sources such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the registry. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +There are many legitimate applications that leverage shim databases for compatibility purposes for legacy applications + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Remote desktop process running on system=== +This search looks for the remote desktop process mstsc.exe running on systems upon which it doesn't typically run. This is accomplished by filtering out all systems that are noted in the `common_rdp_source category` in the Assets and Identity framework. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.001/ T1021.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process=*mstsc.exe AND Processes.dest_category!=common_rdp_source by Processes.dest Processes.user Processes.process +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name(Processes)` +| `remote_desktop_process_running_on_system_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Lateral_Movement|Lateral Movement]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting data that records process activity from your hosts to populate the endpoint data model in the processes node. The search requires you to identify systems that do not commonly use remote desktop. You can use the included support search "Identify Systems Using Remote Desktop" to identify these systems. After identifying them, you will need to add the "common_rdp_source" category to that system using the Enterprise Security Assets and Identities framework. This can be done by adding an entry in the assets.csv file located in `SA-IdentityManagement/lookups`. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Remote Desktop may be used legitimately by users on the network. + +====Reference==== + + +====Test Dataset==== + + +''version'': 5 +
+
+ +---- + +===Remote process instantiation via wmi=== +This search looks for wmic.exe being launched with parameters to spawn a process on a remote system. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2020-11-30 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = wmic.exe Processes.process="*/node*" Processes.process="*process*" Processes.process="*call*" Processes.process="*create*" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `remote_process_instantiation_via_wmi_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The wmic.exe utility is a benign Windows application. It may be used legitimately by Administrators with these parameters for remote system administration, but it's relatively uncommon. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Rundll loading dll by ordinal=== +This search looks for executing scripts with rundll32. Adversaries may abuse rundll32.exe to proxy execution of malicious code. Using rundll32.exe, vice executing directly, may avoid triggering security tools that may not monitor execution of the rundll32.exe process because of allowlists or false positives from normal operations. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2020-11-30 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = rundll32.exe by Processes.process_name Processes.parent_process_name Processes.process Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `rundll_loading_dll_by_ordinal_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Installation + + +====Known False Positives==== +While not common, loading a DLL under %AppData% and calling a function by ordinal is possible by a legitimate process + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Ryuk test files detected=== +The search looks for files that contain the key word *Ryuk* under any folder in the C drive, which is consistent with Ryuk propagation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem WHERE "Filesystem.file_path"=C:\\*Ryuk* BY "Filesystem.dest", "Filesystem.user", "Filesystem.file_path" +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `ryuk_test_files_detected_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint Filesystem data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +If there are files with this keywoord as file names it might trigger false possitives, please make use of our filters to tune out potential FPs. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/ryuk/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Samsam test file write=== +The search looks for a file named "test.txt" written to the windows system directory tree, which is consistent with Samsam propagation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2018-12-14 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.user) as user values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name from datamodel=Endpoint.Filesystem where Filesystem.file_path=*\\windows\\system32\\test.txt by Filesystem.file_path +| `drop_dm_object_name(Filesystem)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `samsam_test_file_write_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +No false positives have been identified. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1486/sam_sam_note/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Sc exe manipulating windows services=== +This search looks for arguments to sc.exe indicating the creation or modification of a Windows service. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1543.003/ T1543.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = sc.exe (Processes.process="* create *" OR Processes.process="* config *") by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `sc_exe_manipulating_windows_services_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Service_Abuse|Windows Service Abuse]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + +* [[Documentation:ESSOC:stories:UseCase#Orangeworm_Attack_Group|Orangeworm Attack Group]] + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Installation + + +====Known False Positives==== +Using sc.exe to manipulate Windows services is uncommon. However, there may be legitimate instances of this behavior. It is important to validate and investigate as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1543.003/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Scheduled task deleted or created via cmd=== +This search looks for flags passed to schtasks.exe on the command-line that indicate a task was created via command like. This has been associated with the Dragonfly threat actor, and the SUNBURST attack against Solarwinds. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2020-12-17 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe (Processes.process=*delete* OR Processes.process=*create*) by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `scheduled_task_deleted_or_created_via_cmd_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Tasks should not be manually created via CLI, this is rarely done by admins as well + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Schtasks scheduling job on remote system=== +This search looks for flags passed to schtasks.exe on the command-line that indicate a job is being scheduled on a remote system. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = schtasks.exe Processes.process="*/create*" (Processes.process="* /s *" OR Processes.process="* /S *") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `schtasks_scheduling_job_on_remote_system_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Lateral_Movement|Lateral Movement]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators may create jobs on remote systems, but this activity is usually limited to a small set of hosts or users. It is important to validate and investigate as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Schtasks used for forcing a reboot=== +This search looks for flags passed to schtasks.exe on the command-line that indicate that a forced reboot of system is scheduled. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2020-12-07 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=schtasks.exe Processes.process="*shutdown*" Processes.process="*/create *" by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `schtasks_used_for_forcing_a_reboot_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting logs with both the process name and command-line from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators may create jobs on systems forcing reboots to perform updates, maintenance, etc. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1053.005/schtask_shutdown/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Script execution via wmi=== +This search looks for scripts launched via WMI. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2020-03-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_name = "scrcons.exe" by Processes.user Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `script_execution_via_wmi_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, administrators may use wmi to launch scripts for legitimate purposes. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1047/execution_scrcons/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Setting credentials via dsinternals modules=== +This detection identifies illegal setting of credentials via DSInternals modules. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=ucast(map_get(input_event, "process_name"), "string", null), process_path=ucast(map_get(input_event, "process_path"), "string", null), cmd_line=ucast(map_get(input_event, "process"), "string", null), parent_process_name=ucast(map_get(input_event, "parent_process_name"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Add-ADDBSidHistory/)=true OR match_regex(cmd_line, /(?i)Add-ADReplNgcKey/)=true OR match_regex(cmd_line, /(?i)Set-ADDBAccountPassword/)=true OR match_regex(cmd_line, /(?i)Set-ADDBAccountPasswordHash/)=true OR match_regex(cmd_line, /(?i)Set-ADDBBootKey/)=true OR match_regex(cmd_line, /(?i)Set-SamAccountPasswordHash/)=true OR match_regex(cmd_line, /(?i)Set-AzureADUserEx/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* process_name + +* parent_process_name + +* _time + +* process_path + +* dest_user_id + +* process + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/MichaelGrafnetter/DSInternals + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Setting credentials via mimikatz modules=== +This detection identifies illegal setting of credentials via Mimikatz modules. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)misc::addsid/)=true OR match_regex(cmd_line, /(?i)CRYPTO::scauth/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/gentilkiwi/mimikatz + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Setting credentials via powersploit modules=== +This detection identifies illegal setting of credentials via PowerSploit modules. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1098/ T1098] +* '''Last Updated''': 2020-11-03 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() + +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), cmd_line=ucast(map_get(input_event, "process"), "string", null) +| where cmd_line != null AND ( match_regex(cmd_line, /(?i)Set-DomainUserPassword/)=true ) + +| eval start_time = timestamp, end_time = timestamp, entities = mvappend( ucast(map_get(input_event, "dest_user_id"), "string", null), ucast(map_get(input_event, "dest_device_id"), "string", null)), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting Windows Security logs from devices of interest, including the event ID 4688 with enabled command line logging. + +====Required field==== + +* dest_device_id + +* dest_user_id + +* process + +* _time + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1098 +| Account Manipulation +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified. + +====Reference==== + +* https://github.com/PowerShellMafia/PowerSploit + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Shim database file creation=== +This search looks for shim database files being written to default directories. The sdbinst.exe application is used to install shim database files (.sdb). According to Microsoft, a shim is a small library that transparently intercepts an API, changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.011/ T1546.011] +* '''Last Updated''': 2020-12-08 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Filesystem.action) values(Filesystem.file_hash) as file_hash values(Filesystem.file_path) as file_path min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.file_path=*Windows\\AppPatch\\Custom* by Filesystem.file_name Filesystem.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +|`drop_dm_object_name(Filesystem)` +| `shim_database_file_creation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +You must be ingesting data that records the filesystem activity from your hosts to populate the Endpoint file-system data model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Because legitimate shim files are created and used all the time, this event, in itself, is not suspicious. However, if there are other correlating events, it may warrant further investigation. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Shim database installation with suspicious parameters=== +This search detects the process execution and arguments required to silently create a shim database. The sdbinst.exe application is used to install shim database files (.sdb). A shim is a small library which transparently intercepts an API, changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.011/ T1546.011] +* '''Last Updated''': 2020-11-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = sdbinst.exe by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `shim_database_installation_with_suspicious_parameters_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Persistence_Techniques|Windows Persistence Techniques]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.011/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Short lived windows accounts=== +This search detects accounts that were created and deleted in a short time period. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.001/ T1136.001] +* '''Last Updated''': 2020-07-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(All_Changes.result_id) as result_id count min(_time) as firstTime max(_time) as lastTime from datamodel=Change where All_Changes.result_id=4720 OR All_Changes.result_id=4726 by _time span=4h All_Changes.user All_Changes.dest +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `drop_dm_object_name("All_Changes")` +| search result_id = 4720 result_id=4726 +| transaction user connected=false maxspan=240m +| table firstTime lastTime count user dest result_id +| `short_lived_windows_accounts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Account_Monitoring_and_Controls|Account Monitoring and Controls]] + + +====How To Implement==== +This search requires you to have enabled your Group Management Audit Logs in your Local Windows Security Policy and be ingesting those logs. More information on how to enable them can be found here: http://whatevernetworks.com/auditing-group-membership-changes-in-active-directory/ + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.001 +| Local Account +| Persistence +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +It is possible that an administrator created and deleted an account in a short time period. Verifying activity with an administrator is advised. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-system.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1136.001/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Single letter process on endpoint=== +This search looks for process names that consist only of a single letter. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2020-12-08 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes by Processes.dest, Processes.user, Processes.process, Processes.process_name +| `drop_dm_object_name(Processes)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| eval process_name_length = len(process_name), endExe = if(substr(process_name, -4) == ".exe", 1, 0) +| search process_name_length=5 AND endExe=1 +| table count, firstTime, lastTime, dest, user, process, process_name +| `single_letter_process_on_endpoint_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Single-letter executables are not always malicious. Investigate this activity with your normal incident-response process. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1204.002/single_letter_exe/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Spike in file writes=== +The search looks for a sharp increase in the number of files written to a particular host + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-03-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Filesystem where Filesystem.action=created by _time span=1h, Filesystem.dest +| `drop_dm_object_name(Filesystem)` +| eventstats max(_time) as maxtime +| stats count as num_data_samples max(eval(if(_time >= relative_time(maxtime, "-1d@d"), count, null))) as "count" avg(eval(if(_time upperBound) AND num_data_samples >=20, 1, 0) +| search isOutlier=1 +| `spike_in_file_writes_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +In order to implement this search, you must populate the Endpoint file-system data model node. This is typically populated via endpoint detection and response product, such as Carbon Black or endpoint data sources such as Sysmon. The data used for this search is typically generated via logs that report reads and writes to the file system. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It is important to understand that if you happen to install any new applications on your hosts or are copying a large number of files, you can expect to see a large increase of file modifications. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Sunburst correlation dll and network event=== +The malware sunburst will load the malicious dll by SolarWinds.BusinessLayerHost.exe. After a period of 12-14 days, the malware will attempt to resolve a subdomain of avsvmcloud.com. This detections will correlate both events. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1203/ T1203] +* '''Last Updated''': 2020-12-14 + +
+
+ +====Search==== +(`sysmon` EventCode=7 ImageLoaded=*SolarWinds.Orion.Core.BusinessLayer.dll) OR (`sysmon` EventCode=22 QueryName=*avsvmcloud.com) +| eventstats dc(EventCode) AS dc_events +| where dc_events=2 +| stats min(_time) as firstTime max(_time) as lastTime values(ImageLoaded) AS ImageLoaded values(QueryName) AS QueryName by host +| rename host as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `sunburst_correlation_dll_and_network_event_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +This detection relies on sysmon logs with the Event ID 7, Driver loaded. Please tune your sysmon config that you DriverLoad event for SolarWinds.Orion.Core.BusinessLayer.dll is captured by Sysmon. Additionally, you need sysmon logs for Event ID 22, DNS Query. We suggest to run this detection at least once a day over the last 14 days. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1203 +| Exploitation for Client Execution +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +unknown + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Suspicious msbuild rename=== +The following analytic identifies renamed instances of msbuild.exe executing. Msbuild.exe is natively found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319. During investigation, identify the code executed and what is executing a renamed instance of MSBuild. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127.001/ T1127.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`sysmon` EventID=1 (OriginalFileName=msbuild.exe OR process_name=msbuild.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_rename_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Trusted_Developer_Utilities_Proxy_Execution_MSBuild|Trusted Developer Utilities Proxy Execution MSBuild]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127.001 +| MSBuild +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may use a moved copy of msbuild, triggering a false positive. + +====Reference==== + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + +* https://github.com/infosecn1nja/MaliciousMacroMSBuild/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious msbuild spawn=== +The following analytic identifies wmiprvse.exe spawning msbuild.exe. This behavior is indicative of a COM object being utilized to spawn msbuild from wmiprvse.exe. It is common for MSBuild.exe to be spawned from devenv.exe while using Visual Studio. In this instance, there will be command line arguments and file paths. In a malicious instance, MSBuild.exe will spawn from non-standard processes and have no command line arguments. For example, MSBuild.exe spawning from explorer.exe, powershell.exe is far less common and should be investigated. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127.001/ T1127.001] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=wmiprvse.exe AND Processes.process_name=msbuild.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_spawn_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Trusted_Developer_Utilities_Proxy_Execution_MSBuild|Trusted Developer Utilities Proxy Execution MSBuild]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127.001 +| MSBuild +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +====Reference==== + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious reg exe process=== +This search looks for reg.exe being launched from a command prompt not started by the user. When a user launches cmd.exe, the parent process is usually explorer.exe. This search filters out those instances. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1112/ T1112] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.parent_process_name != explorer.exe Processes.process_name =cmd.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest Processes.process_id Processes.parent_process_id +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search [ +| tstats `security_content_summariesonly` count FROM datamodel=Endpoint.Processes where Processes.parent_process_name=cmd.exe Processes.process_name= reg.exe by Processes.parent_process_id Processes.dest Processes.process_name +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename parent_process_id as process_id +|dedup process_id +| table process_id dest] +| `suspicious_reg_exe_process_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Defense_Evasion_Tactics|Windows Defense Evasion Tactics]] + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1112 +| Modify Registry +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It's possible for system administrators to write scripts that exhibit this behavior. If this is the case, the search will need to be modified to filter them out. + +====Reference==== + +* https://car.mitre.org/wiki/CAR-2013-03-001 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1112/atomic_red_team/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===Suspicious regsvr32 register suspicious path=== +Adversaries may abuse Regsvr32.exe to proxy execution of malicious code by using non-standard file extensions to load malciious DLLs. Upon investigating, look for network connections to remote destinations (internal or external). Review additional parrallel processes and child processes for additional activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.010/ T1218.010] +* '''Last Updated''': 2021-01-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=regsvr32.exe (Processes.process=*appdata* OR Processes.process=*programdata* OR Processes.process=*windows\temp*) (Processes.process!=*.dll Processes.process!=*.ax Processes.process!=*.ocx) by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_regsvr32_register_suspicious_path_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Regsvr32_Activity|Suspicious Regsvr32 Activity]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints, to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. Tune the query by filtering additional extensions found to be used by legitimate processes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.010 +| Regsvr32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Limited false positives with the query restricted to specified paths. Add more world writeable paths as tuning continues. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + +* https://support.microsoft.com/en-us/topic/how-to-use-the-regsvr32-tool-and-troubleshoot-regsvr32-error-messages-a98d960a-7392-e6fe-d90a-3f4e0cb543e5 + +* https://any.run/report/f29a7d2ecd3585e1e4208e44bcc7156ab5388725f1d29d03e7699da0d4598e7c/0826458b-5367-45cf-b841-c95a33a01718 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.010/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious rundll32 rename=== +The following analytic identifies renamed instances of rundll32.exe executing. rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. During investigation, validate it is the legitimate rundll32.exe executing and what script content it is loading. This query relies on the OriginalFileName from Sysmon, or internal name from the PE meta data. Expand the query as needed by looking for specific command line arguments outlined in other analytics. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-02-04 + +
+
+ +====Search==== +`sysmon` EventID=1 OriginalFileName=RUNDLL32.EXE NOT process_name=rundll32.exe +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_rename_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Tune and filter known instances where renamed rundll32.exe may be used. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use a moved copy of rundll32, triggering a false positive. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious rundll32 startw=== +The following analytic identifies rundll32.exe executing a DLL function name, Start and StartW, on the command line that is commonly observed with Cobalt Strike x86 and x64 DLL payloads. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. Typically, the DLL will be written and loaded from a world writeable path or user location. In most instances it will not have a valid certificate (Unsigned). During investigation, review the parent process and other parallel application execution. Capture and triage the DLL in question. In the instance of Cobalt Strike, rundll32.exe is the default process it opens and injects shellcode into. This default process can be changed, but typically is not. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-04 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*start* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_startw_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + +* [[Documentation:ESSOC:stories:UseCase#Cobalt_Strike|Cobalt Strike]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use Start as a function and call it via the command line. Filter as needed. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://www.cobaltstrike.com/help-windows-executable + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious rundll32 dllregisterserver=== +The following analytic identifies rundll32.exe using dllregisterserver on the command line to load a DLL. When a DLL is registered, the DllRegisterServer method entry point in the DLL is invoked. This is typically seen when a DLL is being registered on the system. Not every instance is considered malicious, but it will capture malicious use of it. During investigation, review the parent process and parrellel processes executing. Capture the DLL being loaded and inspect further. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-09 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=rundll32.exe Processes.process=*dllregisterserver* by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_dllregisterserver_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +This is likely to produce false positives and will require some filtering. Tune the query by adding command line paths to known good DLLs, or filtering based on parent process names. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/seedworm-apt-iran-middle-east + +* https://github.com/pan-unit42/tweets/blob/master/2020-12-10-IOCs-from-Ursnif-infection-with-Delf-variant.txt + +* https://www.crowdstrike.com/blog/duck-hunting-with-falcon-complete-qakbot-zip-based-campaign/ + +* https://msdn.microsoft.com/en-us/library/windows/desktop/ms682162(v=vs.85).aspx + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious rundll32 no commandline arguments=== +The following analytic identifies rundll32.exe with no command line arguments. It is unusual for rundll32.exe to execute with no command line arguments present. This particular behavior is common with malicious software, including Cobalt Strike. During investigation, identify any network connections and parallel processes. Identify any suspicious module loads related to credential dumping or file writes. Rundll32.exe is natively found in C:\Windows\system32 and C:\Windows\syswow64. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-09 + +
+
+ +====Search==== +`sysmon` EventID=1 (process_name=rundll32.exe OR OriginalFileName=RUNDLL32.EXE) +| regex CommandLine="(rundll32\.exe.{0,4}$)" +| stats count min(_time) as firstTime max(_time) as lastTime by dest, User, ParentImage,ParentCommandLine, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_rundll32_no_commandline_arguments_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Rundll32_Activity|Suspicious Rundll32 Activity]] + +* [[Documentation:ESSOC:stories:UseCase#Cobalt_Strike|Cobalt Strike]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, some legitimate applications may use a moved copy of rundll32, triggering a false positive. + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + +* https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.011/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious microsoft workflow compiler rename=== +The following analytic identifies a renamed instance of microsoft.workflow.compiler.exe. Microsoft.workflow.compiler.exe is natively found in C:\Windows\Microsoft.NET\Framework64\v4.0.30319 and is rarely utilized. When investigating, identify the executed code on disk and review. A spawned child process from microsoft.workflow.compiler.exe is uncommon. In any instance, microsoft.workflow.compiler.exe spawning from an Office product or any living off the land binary is highly suspect. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127/ T1127], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== +`sysmon` EventID=1 (OriginalFileName=microsoft.workflow.compiler.exe OR process_name=microsoft.workflow.compiler.exe) +| stats count min(_time) as firstTime max(_time) as lastTime by Computer, User, parent_process_name, process_name, OriginalFileName, process_path, CommandLine +| rename Computer as dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_microsoft_workflow_compiler_rename_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Trusted_Developer_Utilities_Proxy_Execution|Trusted Developer Utilities Proxy Execution]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127 +| Trusted Developer Utilities Proxy Execution +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may use a moved copy of microsoft.workflow.compiler.exe, triggering a false positive. + +====Reference==== + +* https://lolbas-project.github.io/lolbas/Binaries/Microsoft.Workflow.Compiler/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md#atomic-test-6---microsoftworkflowcompilerexe-payload-execution + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious microsoft workflow compiler usage=== +The following analytic identifies microsoft.workflow.compiler.exe usage. microsoft.workflow.compiler.exe is natively found in C:\Windows\Microsoft.NET\Framework64\v4.0.30319 and is rarely utilized. When investigating, identify the executed code on disk and review. It is not a commonly used process by many applications. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127/ T1127] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=microsoft.workflow.compiler.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_microsoft_workflow_compiler_usage_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Trusted_Developer_Utilities_Proxy_Execution|Trusted Developer Utilities Proxy Execution]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127 +| Trusted Developer Utilities Proxy Execution +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, limited instances have been identified coming from native Microsoft utilities similar to SCCM. + +====Reference==== + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md#atomic-test-6---microsoftworkflowcompilerexe-payload-execution + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious msbuild path=== +The following analytic identifies msbuild.exe executing from a non-standard path. Msbuild.exe is natively found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Instances of Visual Studio will run a copy of msbuild.exe. A moved instance of MSBuild is suspicious, however there are instances of build applications that will move or use a copy of MSBuild. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127.001/ T1127.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=msbuild.exe AND (Processes.process_path!=c:\\windows\\microsoft.net\\framework*\\v*\\*) by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_msbuild_path_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Trusted_Developer_Utilities_Proxy_Execution_MSBuild|Trusted Developer Utilities Proxy Execution MSBuild]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127.001 +| MSBuild +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Some legitimate applications may use a moved copy of msbuild.exe, triggering a false positive. Baselining of MSBuild.exe usage is recommended to better understand it's path usage. Visual Studio runs an instance out of a path that will need to be filtered on. + +====Reference==== + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1127.001/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious mshta child process=== +The following analytic identifies child processes spawning from "mshta.exe". The search will return the first time and last time these command-line arguments were used for these executions, as well as the target system, the user, parent process "mshta.exe" and its child process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.parent_process_name=mshta.exe AND (Processes.process_name=powershell.exe OR Processes.process_name=colorcpl.exe OR Processes.process_name=msbuild.exe OR Processes.process_name=microsoft.workflow.compiler.exe OR Processes.process_name=searchprotocolhost.exe OR Processes.process_name=scrcons.exe OR Processes.process_name=cscript.exe OR Processes.process_name=wscript.exe OR Processes.process_name=powershell.exe OR Processes.process_name=cmd.exe) by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_mshta_child_process_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +====Reference==== + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious mshta spawn=== +The following analytic identifies wmiprvse.exe spawning mshta.exe. This behavior is indicative of a DCOM object being utilized to spawn mshta from wmiprvse.exe or svchost.exe. In this instance, adversaries may use LethalHTA that will spawn mshta.exe from svchost.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process_name) as process_name values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.parent_process_name=svchost.exe OR Processes.parent_process_name=wmiprvse.exe) AND Processes.process_name=mshta.exe by Processes.dest Processes.parent_process Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `suspicious_mshta_spawn_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_MSHTA_Activity|Suspicious MSHTA Activity]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +Although unlikely, some legitimate applications may exhibit this behavior, triggering a false positive. + +====Reference==== + +* https://codewhitesec.blogspot.com/2018/07/lethalhta.html + +* https://github.com/redcanaryco/AtomicTestHarnesses + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1218.005/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Suspicious wevtutil usage=== +The wevtutil.exe application is the windows event log utility. This searches for wevtutil.exe with parameters for clearing the application, security, setup, or system event logs. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070.001/ T1070.001] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name = wevtutil.exe Processes.process="*cl*" (Processes.process="*System*" OR Processes.process="*Security*" OR Processes.process="*Setup*" OR Processes.process="*Application*") by Processes.process_name Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `suspicious_wevtutil_usage_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Log_Manipulation|Windows Log Manipulation]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070.001 +| Clear Windows Event Logs +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The wevtutil.exe application is a legitimate Windows event log utility. Administrators may use it to manage Windows event logs. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Suspicious writes to windows recycle bin=== +This search detects writes to the recycle bin by a process other than explorer.exe. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036/ T1036] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.file_path) as file_path values(Filesystem.file_name) as file_name FROM datamodel=Endpoint.Filesystem where Filesystem.file_path = "*$Recycle.Bin*" by Filesystem.process_id Filesystem.dest +| `drop_dm_object_name("Filesystem")` +| search [ +| tstats `security_content_summariesonly` values(Processes.user) as user values(Processes.process_name) as process_name values(Processes.parent_process_name) as parent_process_name FROM datamodel=Endpoint.Processes where Processes.process_name != "explorer.exe" by Processes.process_id Processes.dest +| `drop_dm_object_name("Processes")` +| table process_id dest] +| `suspicious_writes_to_windows_recycle_bin_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Collection_and_Staging|Collection and Staging]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on filesystem and process logs responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` and `Filesystem` nodes. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036 +| Masquerading +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Known False Positives==== +Because the Recycle Bin is a hidden folder in modern versions of Windows, it would be unusual for a process other than explorer.exe to write to it. Incidents should be investigated as appropriate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036/write_to_recycle_bin/windows-sysmon.log + + +''version'': 4 +
+
+ +---- + +===System information discovery detection=== +Detect system information discovery techniques used by attackers to understand configurations of the system to further exploit it. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1082/ T1082] +* '''Last Updated''': 2020-10-12 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process="*wmic* qfe*" OR Processes.process=*systeminfo* OR Processes.process=*hostname*) by Processes.user Processes.process_name Processes.process Processes.dest +| `drop_dm_object_name(Processes)` +| eventstats dc(process) as dc_processes_by_dest by dest +| where dc_processes_by_dest > 2 +| stats values(process) min(firstTime) as firstTime max(lastTime) as lastTime by user, dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `system_information_discovery_detection_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Discovery_Techniques|Discovery Techniques]] + + +====How To Implement==== +To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1082 +| System Information Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators debugging servers + +====Reference==== + +* https://oscp.infosecsanyam.in/priv-escalation/windows-priv-escalation + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1082/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===System process running from unexpected location=== +An attacker tries might try to use different version of a system command without overriding original, or they might try to avoid some detection running the process from a different folder. This detection checks that a list of system processes run inside C:\\Windows\System32 or C:\\Windows\SysWOW64 The list of system processes has been extracted from https://github.com/splunk/security_content/blob/develop/lookups/is_windows_system_file.csv and the original detection https://github.com/splunk/security_content/blob/develop/detections/system_processes_run_from_unexpected_locations.yml + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036/ T1036] +* '''Last Updated''': 2020-08-25 + +
+
+ +====Search==== + $ssa_input = +| from read_ssa_enriched_events() +| eval device=ucast(map_get(input_event, "dest_device_id"), "string", null), user=ucast(map_get(input_event, "dest_user_id"), "string", null), timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)), process_name=lower(ucast(map_get(input_event, "process_name"), "string", null)), process_path=lower(ucast(map_get(input_event, "process_path"), "string", null)); +$cond_1 = +| from $ssa_input +| where process_name="arp.exe" OR process_name="adaptertroubleshooter.exe" OR process_name="applicationframehost.exe" OR process_name="atbroker.exe" OR process_name="authhost.exe" OR process_name="autoworkplace.exe" OR process_name="axinstui.exe" OR process_name="backgroundtransferhost.exe" OR process_name="bdehdcfg.exe" OR process_name="bdeuisrv.exe" OR process_name="bdeunlockwizard.exe" OR process_name="bitlockerdeviceencryption.exe" OR process_name="bitlockerwizard.exe" OR process_name="bitlockerwizardelev.exe" OR process_name="bytecodegenerator.exe" OR process_name="camerasettingsuihost.exe" OR process_name="castsrv.exe" OR process_name="certenrollctrl.exe" OR process_name="checknetisolation.exe" OR process_name="clipup.exe" OR process_name="cloudexperiencehostbroker.exe" OR process_name="cloudnotifications.exe" OR process_name="cloudstoragewizard.exe" OR process_name="compmgmtlauncher.exe" OR process_name="compattelrunner.exe" OR process_name="computerdefaults.exe" OR process_name="credentialuibroker.exe" OR process_name="dfdwiz.exe" OR process_name="dwwin.exe" OR process_name="dataexchangehost.exe" OR process_name="defrag.exe" OR process_name="devicedisplayobjectprovider.exe" OR process_name="deviceeject.exe" OR process_name="deviceenroller.exe" OR process_name="devicepairingwizard.exe" OR process_name="deviceproperties.exe" OR process_name="disksnapshot.exe" OR process_name="dism.exe" OR process_name="displayswitch.exe" OR process_name="dmnotificationbroker.exe" OR process_name="dmomacpmo.exe" OR process_name="dpiscaling.exe" OR process_name="dsmusertask.exe" OR process_name="dxpserver.exe" OR process_name="edpcleanup.exe" OR process_name="eosnotify.exe" OR process_name="eap3host.exe" OR process_name="easpoliciesbrokerhost.exe" OR process_name="easeofaccessdialog.exe" OR process_name="ehstorauthn.exe" OR process_name="fxscover.exe" OR process_name="fxssvc.exe" OR process_name="fxsunatd.exe" OR process_name="filehistory.exe" OR process_name="fondue.exe" OR process_name="gamepanel.exe" OR process_name="genvalobj.exe" OR process_name="gettingstarted.exe" OR process_name="hostname.exe" OR process_name="icsentitlementhost.exe" OR process_name="infdefaultinstall.exe" OR process_name="installagent.exe" OR process_name="languagecomponentsinstallercomhandler.exe" OR process_name="launchtm.exe" OR process_name="launchwinapp.exe" OR process_name="legacynetuxhost.exe" OR process_name="licensemanagershellext.exe" OR process_name="licensingui.exe" OR process_name="locationnotificationwindows.exe" OR process_name="locationnotifications.exe" OR process_name="locator.exe" OR process_name="lockapphost.exe" OR process_name="lockscreencontentserver.exe" OR process_name="logonui.exe" OR process_name="lsaiso.exe" OR process_name="mdeserver.exe" OR process_name="mdmagent.exe" OR process_name="mdmappinstaller.exe" OR process_name="mrinfo.exe" OR process_name="mrt.exe" OR process_name="mschedexe.exe" OR process_name="magnify.exe" OR process_name="mbaeparsertask.exe" OR process_name="mdres.exe" OR process_name="mdsched.exe" OR process_name="migautoplay.exe" OR process_name="mpsigstub.exe" OR process_name="msspellcheckinghost.exe" OR process_name="muiunattend.exe" OR process_name="multidigimon.exe" OR process_name="musnotification.exe" OR process_name="musnotificationux.exe" OR process_name="napstat.exe" OR process_name="netstat.exe" OR process_name="narrator.exe" OR process_name="netcfgnotifyobjecthost.exe" OR process_name="netevtfwdr.exe" OR process_name="netproj.exe" OR process_name="netplwiz.exe" OR process_name="networkuxbroker.exe"; +$cond_2 = +| from $ssa_input +| where process_name="openwith.exe" OR process_name="optionalfeatures.exe" OR process_name="pathping.exe" OR process_name="ping.exe" OR process_name="passwordonwakesettingflyout.exe" OR process_name="pickerhost.exe" OR process_name="pkgmgr.exe" OR process_name="pnpunattend.exe" OR process_name="pnputil.exe" OR process_name="presentationhost.exe" OR process_name="presentationsettings.exe" OR process_name="printbrmui.exe" OR process_name="printdialoghost.exe" OR process_name="printdialoghost3d.exe" OR process_name="printisolationhost.exe" OR process_name="proximityuxhost.exe" OR process_name="rdspnf.exe" OR process_name="rmactivate.exe" OR process_name="rmactivate_isv.exe" OR process_name="rmactivate_ssp.exe" OR process_name="rmactivate_ssp_isv.exe" OR process_name="route.exe" OR process_name="rdpsa.exe" OR process_name="rdpsaproxy.exe" OR process_name="rdpsauachelper.exe" OR process_name="reagentc.exe" OR process_name="recoverydrive.exe" OR process_name="register-cimprovider.exe" OR process_name="registeriepkeys.exe" OR process_name="relpost.exe" OR process_name="remoteposworker.exe" OR process_name="rmclient.exe" OR process_name="robocopy.exe" OR process_name="rpcping.exe" OR process_name="runlegacycplelevated.exe" OR process_name="runtimebroker.exe" OR process_name="sihclient.exe" OR process_name="searchfilterhost.exe" OR process_name="searchindexer.exe" OR process_name="searchprotocolhost.exe" OR process_name="secedit.exe" OR process_name="sensordataservice.exe" OR process_name="setieinstalleddate.exe" OR process_name="settingsynchost.exe" OR process_name="slidetoshutdown.exe" OR process_name="smartscreensettings.exe" OR process_name="sndvol.exe" OR process_name="snippingtool.exe" OR process_name="soundrecorder.exe" OR process_name="spaceagent.exe" OR process_name="sppextcomobj.exe" OR process_name="srtasks.exe" OR process_name="stikynot.exe" OR process_name="synchost.exe" OR process_name="sysreseterr.exe" OR process_name="systempropertiesadvanced.exe" OR process_name="systempropertiescomputername.exe" OR process_name="systempropertiesdataexecutionprevention.exe" OR process_name="systempropertieshardware.exe" OR process_name="systempropertiesperformance.exe" OR process_name="systempropertiesprotection.exe" OR process_name="systempropertiesremote.exe" OR process_name="systemsettingsadminflows.exe" OR process_name="systemsettingsbroker.exe" OR process_name="systemsettingsremovedevice.exe" OR process_name="tcpsvcs.exe" OR process_name="tracert.exe" OR process_name="tstheme.exe" OR process_name="tswbprxy.exe" OR process_name="tapiunattend.exe" OR process_name="taskmgr.exe" OR process_name="thumbnailextractionhost.exe" OR process_name="tokenbrokercookies.exe" OR process_name="tpminit.exe" OR process_name="tswpfwrp.exe" OR process_name="ui0detect.exe" OR process_name="upgraderesultsui.exe" OR process_name="useraccountbroker.exe" OR process_name="useraccountcontrolsettings.exe" OR process_name="usoclient.exe" OR process_name="utilman.exe" OR process_name="vssvc.exe" OR process_name="vaultcmd.exe" OR process_name="vaultsysui.exe" OR process_name="wfs.exe" OR process_name="wmpdmc.exe" OR process_name="wpdshextautoplay.exe" OR process_name="wscollect.exe" OR process_name="wsmanhttpconfig.exe" OR process_name="wsreset.exe" OR process_name="wudfhost.exe" OR process_name="wwahost.exe" OR process_name="wallpaperhost.exe" OR process_name="webcache.exe" OR process_name="werfault.exe" OR process_name="werfaultsecure.exe" OR process_name="winsat.exe" OR process_name="windows.media.backgroundplayback.exe" OR process_name="windowsactiondialog.exe" OR process_name="windowsanytimeupgrade.exe" OR process_name="windowsanytimeupgraderesults.exe"; +$cond_3 = +| from $ssa_input +| where process_name="windowsanytimeupgradeui.exe" OR process_name="windowsupdateelevatedinstaller.exe" OR process_name="workfolders.exe" OR process_name="wpcmon.exe" OR process_name="acu.exe" OR process_name="aitagent.exe" OR process_name="aitstatic.exe" OR process_name="alg.exe" OR process_name="appidcertstorecheck.exe" OR process_name="appidpolicyconverter.exe" OR process_name="at.exe" OR process_name="attrib.exe" OR process_name="audiodg.exe" OR process_name="auditpol.exe" OR process_name="autochk.exe" OR process_name="autoconv.exe" OR process_name="autofmt.exe" OR process_name="baaupdate.exe" OR process_name="backgroundtaskhost.exe" OR process_name="bcastdvr.exe" OR process_name="bcdboot.exe" OR process_name="bcdedit.exe" OR process_name="bdechangepin.exe" OR process_name="bdeunlock.exe" OR process_name="bitsadmin.exe" OR process_name="bootcfg.exe" OR process_name="bootim.exe" OR process_name="bootsect.exe" OR process_name="bridgeunattend.exe" OR process_name="browser_broker.exe" OR process_name="bthudtask.exe" OR process_name="cacls.exe" OR process_name="calc.exe" OR process_name="cdpreference.exe" OR process_name="certreq.exe" OR process_name="certutil.exe" OR process_name="change.exe" OR process_name="changepk.exe" OR process_name="charmap.exe" OR process_name="chglogon.exe" OR process_name="chgport.exe" OR process_name="chgusr.exe" OR process_name="chkdsk.exe" OR process_name="chkntfs.exe" OR process_name="choice.exe" OR process_name="cipher.exe" OR process_name="cleanmgr.exe" OR process_name="cliconfg.exe" OR process_name="clip.exe" OR process_name="cmd.exe" OR process_name="cmdkey.exe" OR process_name="cmdl32.exe" OR process_name="cmmon32.exe" OR process_name="cmstp.exe" OR process_name="cofire.exe" OR process_name="colorcpl.exe" OR process_name="comp.exe" OR process_name="compact.exe" OR process_name="conhost.exe" OR process_name="consent.exe" OR process_name="control.exe" OR process_name="convert.exe" OR process_name="credwiz.exe" OR process_name="cscript.exe" OR process_name="csrss.exe" OR process_name="ctfmon.exe" OR process_name="cttune.exe" OR process_name="cttunesvr.exe" OR process_name="dashost.exe" OR process_name="dccw.exe" OR process_name="dcomcnfg.exe" OR process_name="ddodiag.exe" OR process_name="dfrgui.exe" OR process_name="dialer.exe" OR process_name="diantz.exe" OR process_name="dinotify.exe" OR process_name="diskpart.exe" OR process_name="diskperf.exe" OR process_name="diskraid.exe" OR process_name="dispdiag.exe" OR process_name="djoin.exe" OR process_name="dllhost.exe" OR process_name="dllhst3g.exe" OR process_name="dmcertinst.exe" OR process_name="dmcfghost.exe" OR process_name="dmclient.exe" OR process_name="dnscacheugc.exe" OR process_name="doskey.exe" OR process_name="dpapimig.exe" OR process_name="dpnsvr.exe" OR process_name="driverquery.exe" OR process_name="drvcfg.exe" OR process_name="drvinst.exe" OR process_name="dsregcmd.exe" OR process_name="dstokenclean.exe" OR process_name="dvdplay.exe" OR process_name="dvdupgrd.exe" OR process_name="dwm.exe" OR process_name="dxdiag.exe" OR process_name="easinvoker.exe" OR process_name="efsui.exe"; +$cond_4 = +| from $ssa_input +| where process_name="embeddedapplauncher.exe" OR process_name="esentutl.exe" OR process_name="eudcedit.exe" OR process_name="eventcreate.exe" OR process_name="eventvwr.exe" OR process_name="expand.exe" OR process_name="extrac32.exe" OR process_name="fc.exe" OR process_name="fhmanagew.exe" OR process_name="find.exe" OR process_name="findstr.exe" OR process_name="finger.exe" OR process_name="fixmapi.exe" OR process_name="fltmc.exe" OR process_name="fodhelper.exe" OR process_name="fontdrvhost.exe" OR process_name="fontview.exe" OR process_name="forfiles.exe" OR process_name="fsavailux.exe" OR process_name="fsquirt.exe" OR process_name="fsutil.exe" OR process_name="ftp.exe" OR process_name="fvenotify.exe" OR process_name="fveprompt.exe" OR process_name="getmac.exe" OR process_name="gpresult.exe" OR process_name="gpscript.exe" OR process_name="gpupdate.exe" OR process_name="grpconv.exe" OR process_name="hdwwiz.exe" OR process_name="help.exe" OR process_name="hwrcomp.exe" OR process_name="hwrreg.exe" OR process_name="icacls.exe" OR process_name="icardagt.exe" OR process_name="icsunattend.exe" OR process_name="ie4uinit.exe" OR process_name="ieunatt.exe" OR process_name="ieetwcollector.exe" OR process_name="iexpress.exe" OR process_name="immersivetpmvscmgrsvr.exe" OR process_name="ipconfig.exe" OR process_name="irftp.exe" OR process_name="iscsicli.exe" OR process_name="iscsicpl.exe" OR process_name="isoburn.exe" OR process_name="klist.exe" OR process_name="ksetup.exe" OR process_name="ktmutil.exe" OR process_name="label.exe" OR process_name="licensingdiag.exe" OR process_name="lodctr.exe" OR process_name="logagent.exe" OR process_name="logman.exe" OR process_name="logoff.exe" OR process_name="lpkinstall.exe" OR process_name="lpksetup.exe" OR process_name="lpremove.exe" OR process_name="lsass.exe" OR process_name="lsm.exe" OR process_name="makecab.exe" OR process_name="manage-bde.exe" OR process_name="mblctr.exe" OR process_name="mcbuilder.exe" OR process_name="mctadmin.exe" OR process_name="mfpmp.exe" OR process_name="mmc.exe" OR process_name="mobsync.exe" OR process_name="mountvol.exe" OR process_name="mpnotify.exe" OR process_name="msconfig.exe" OR process_name="msdt.exe" OR process_name="msdtc.exe" OR process_name="msfeedssync.exe" OR process_name="msg.exe" OR process_name="mshta.exe" OR process_name="msiexec.exe" OR process_name="msinfo32.exe" OR process_name="mspaint.exe" OR process_name="msra.exe" OR process_name="mstsc.exe" OR process_name="mtstocom.exe" OR process_name="nbtstat.exe" OR process_name="ndadmin.exe" OR process_name="net.exe" OR process_name="net1.exe" OR process_name="netbtugc.exe" OR process_name="netcfg.exe" OR process_name="netiougc.exe" OR process_name="netsh.exe" OR process_name="newdev.exe" OR process_name="nltest.exe" OR process_name="notepad.exe" OR process_name="nslookup.exe" OR process_name="ntoskrnl.exe" OR process_name="ntprint.exe" OR process_name="ocsetup.exe" OR process_name="odbcad32.exe" OR process_name="odbcconf.exe" OR process_name="omadmclient.exe" OR process_name="omadmprc.exe"; +$cond_5 = +| from $ssa_input +| where process_name="openfiles.exe" OR process_name="osk.exe" OR process_name="p2phost.exe" OR process_name="pcalua.exe" OR process_name="pcaui.exe" OR process_name="pcawrk.exe" OR process_name="pcwrun.exe" OR process_name="perfmon.exe" OR process_name="phoneactivate.exe" OR process_name="plasrv.exe" OR process_name="poqexec.exe" OR process_name="powercfg.exe" OR process_name="prevhost.exe" OR process_name="print.exe" OR process_name="printfilterpipelinesvc.exe" OR process_name="printui.exe" OR process_name="proquota.exe" OR process_name="provtool.exe" OR process_name="psr.exe" OR process_name="pwlauncher.exe" OR process_name="qappsrv.exe" OR process_name="qprocess.exe" OR process_name="query.exe" OR process_name="quser.exe" OR process_name="qwinsta.exe" OR process_name="rasautou.exe" OR process_name="rasdial.exe" OR process_name="raserver.exe" OR process_name="rasphone.exe" OR process_name="rdpclip.exe" OR process_name="rdpinput.exe" OR process_name="rdrleakdiag.exe" OR process_name="recdisc.exe" OR process_name="recover.exe" OR process_name="reg.exe" OR process_name="regedt32.exe" OR process_name="regini.exe" OR process_name="regsvr32.exe" OR process_name="rekeywiz.exe" OR process_name="relog.exe" OR process_name="repair-bde.exe" OR process_name="replace.exe" OR process_name="reset.exe" OR process_name="resmon.exe" OR process_name="rmttpmvscmgrsvr.exe" OR process_name="rrinstaller.exe" OR process_name="rstrui.exe" OR process_name="runas.exe" OR process_name="rundll32.exe" OR process_name="runonce.exe" OR process_name="rwinsta.exe" OR process_name="sbunattend.exe" OR process_name="sc.exe" OR process_name="schtasks.exe" OR process_name="sdbinst.exe" OR process_name="sdchange.exe" OR process_name="sdclt.exe" OR process_name="sdiagnhost.exe" OR process_name="secinit.exe" OR process_name="services.exe" OR process_name="sessionmsg.exe" OR process_name="sethc.exe" OR process_name="setspn.exe" OR process_name="setupcl.exe" OR process_name="setupugc.exe" OR process_name="setx.exe" OR process_name="sfc.exe" OR process_name="shadow.exe" OR process_name="shrpubw.exe" OR process_name="shutdown.exe" OR process_name="sigverif.exe" OR process_name="sihost.exe" OR process_name="slui.exe" OR process_name="smss.exe" OR process_name="snmptrap.exe" OR process_name="sort.exe" OR process_name="spinstall.exe" OR process_name="spoolsv.exe" OR process_name="sppsvc.exe" OR process_name="spreview.exe" OR process_name="srdelayed.exe" OR process_name="subst.exe" OR process_name="svchost.exe" OR process_name="sxstrace.exe" OR process_name="syskey.exe" OR process_name="systeminfo.exe" OR process_name="systemreset.exe" OR process_name="systray.exe" OR process_name="tabcal.exe" OR process_name="takeown.exe" OR process_name="taskeng.exe" OR process_name="taskhost.exe" OR process_name="taskhostw.exe" OR process_name="taskkill.exe" OR process_name="tasklist.exe" OR process_name="taskmgr.exe" OR process_name="tcmsetup.exe" OR process_name="timeout.exe" OR process_name="tpmvscmgr.exe" OR process_name="tpmvscmgrsvr.exe"; +$cond_6 = +| from $ssa_input +| where process_name="tracerpt.exe" OR process_name="tscon.exe" OR process_name="tsdiscon.exe" OR process_name="tskill.exe" OR process_name="typeperf.exe" OR process_name="tzsync.exe" OR process_name="tzutil.exe" OR process_name="ucsvc.exe" OR process_name="unlodctr.exe" OR process_name="unregmp2.exe" OR process_name="upnpcont.exe" OR process_name="userinit.exe" OR process_name="vds.exe" OR process_name="vdsldr.exe" OR process_name="verclsid.exe" OR process_name="verifier.exe" OR process_name="verifiergui.exe" OR process_name="vmicsvc.exe" OR process_name="vssadmin.exe" OR process_name="w32tm.exe" OR process_name="waitfor.exe" OR process_name="wbadmin.exe" OR process_name="wbengine.exe" OR process_name="wecutil.exe" OR process_name="wermgr.exe" OR process_name="wevtutil.exe" OR process_name="wextract.exe" OR process_name="where.exe" OR process_name="whoami.exe" OR process_name="wiaacmgr.exe" OR process_name="wiawow64.exe" OR process_name="wifitask.exe" OR process_name="wimserv.exe" OR process_name="wininit.exe" OR process_name="winload.exe" OR process_name="winlogon.exe" OR process_name="winresume.exe" OR process_name="winrs.exe" OR process_name="winrshost.exe" OR process_name="winver.exe" OR process_name="wisptis.exe" OR process_name="wkspbroker.exe" OR process_name="wksprt.exe" OR process_name="wlanext.exe" OR process_name="wlrmdr.exe" OR process_name="wowreg32.exe" OR process_name="wpnpinst.exe" OR process_name="wpr.exe" OR process_name="write.exe" OR process_name="wscript.exe" OR process_name="wsmprovhost.exe" OR process_name="wsqmcons.exe" OR process_name="wuapihost.exe" OR process_name="wuapp.exe" OR process_name="wuauclt.exe" OR process_name="wusa.exe" OR process_name="xcopy.exe" OR process_name="xpsrchvw.exe" OR process_name="xwizard.exe"; + +| from $cond_1 +| union $cond_2 +| union $cond_3 +| union $cond_4 +| union $cond_5 +| union $cond_6 +| where process_path!="c:\\windows\\system32" AND process_path!="c:\\windows\\syswow64" +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(device, user), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +Collect endpoint data such as sysmon or 4688 events. + +====Required field==== + +* dest_device_id + +* process_name + +* _time + +* dest_user_id + +* process_path + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036 +| Masquerading +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===System processes run from unexpected locations=== +This search looks for system processes that normally run out of C:\Windows\System32\ or C:\Windows\SysWOW64 that are not run from that location. This can indicate a malicious process that is trying to hide as a legitimate process. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2020-12-08 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes where Processes.process_path !="C:\\Windows\\System32*" Processes.process_path !="C:\\Windows\\SysWOW64*" by Processes.user Processes.dest Processes.process_name Processes.process_id Processes.process_path Processes.parent_process_name Processes.process_hash +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `is_windows_system_file` +| `system_processes_run_from_unexpected_locations_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +To successfully implement this search you need to ingest details about process execution from your hosts. Specifically, this search requires the process name and the full path to the process executable. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Usn journal deletion=== +The fsutil.exe application is a legitimate Windows utility used to perform tasks related to the file allocation table (FAT) and NTFS file systems. The update sequence number (USN) change journal provides a log of all changes made to the files on the disk. This search looks for fsutil.exe deleting the USN journal. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070/ T1070] +* '''Last Updated''': 2018-12-03 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(Processes.process) as process values(Processes.parent_process) as parent_process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=fsutil.exe by Processes.user Processes.process_name Processes.parent_process_name Processes.dest +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| search process="*deletejournal*" AND process="*usn*" +| `usn_journal_deletion_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Log_Manipulation|Windows Log Manipulation]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070 +| Indicator Removal on Host +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Unload sysmon filter driver=== +Attackers often disable security tools to avoid detection. This search looks for the usage of process `fltMC.exe` to unload a Sysmon Driver that will stop sysmon from collecting the data. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.001/ T1562.001] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime values(Processes.process) as process max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=fltMC.exe AND Processes.process=*unload* AND Processes.process=*SysmonDrv* by Processes.process_name Processes.process_id Processes.parent_process_name Processes.process Processes.dest Processes.user +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +|`unload_sysmon_filter_driver_filter` +| table firstTime lastTime dest user count process_name process_id parent_process_name process + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Disabling_Security_Tools|Disabling Security Tools]] + + +====How To Implement==== +You must be ingesting data that records process activity from your hosts to populate the Endpoint data model in the Processes node. You must also be ingesting logs with both the process name and command line from your endpoints. The command-line arguments are mapped to the "process" field in the Endpoint data model. This search is also shipped with `unload_sysmon_filter_driver_filter` macro, update this macro to filter out false positives. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== + + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/atomic_red_team/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Unusually long command line=== +Command lines that are extremely long may be indicative of malicious activity on your hosts. This search leverages the Splunk Streaming ML DSP plugin to help identify command lines with lengths that are unusual for a given user. This detection is inspired on Unusually Long Command Line authored by Rico Valdez. + +* '''Product''': UEBA for Security Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-10-06 + +
+
+ +====Search==== + +| from read_ssa_enriched_events() +| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null)) +| eval cmd_line=ucast(map_get(input_event, "process"), "string", null), dest_user_id=ucast(map_get(input_event, "dest_user_id"), "string", null), dest_device_id=ucast(map_get(input_event, "dest_device_id"), "string", null), process_name=ucast(map_get(input_event, "process_name"), "string", null) +| where cmd_line!=null and dest_user_id!=null +| eval cmd_line_norm=replace(cast(cmd_line, "string"), /\s(--?\w+) +|(\/\w+)/, " ARG"), cmd_line_norm=replace(cmd_line_norm, /\w:\\[^\s]+/, "PATH"), cmd_line_norm=replace(cmd_line_norm, /\d+/, "N"), input=parse_double(len(coalesce(cmd_line_norm, ""))) +| select timestamp, process_name, dest_device_id, dest_user_id, cmd_line, input +| adaptive_threshold algorithm="quantile" entity="process_name" window=60480000 +| where label AND quantile>0.99 +| first_time_event input_columns=["dest_device_id", "cmd_line"] +| where first_time_dest_device_id_cmd_line +| eval start_time = timestamp, end_time = timestamp, entities = mvappend(dest_device_id, dest_user_id), body = "TBD" +| into write_ssa_detected_events(); + +====Associated Analytic Story==== + + +====How To Implement==== +You must be ingesting sysmon endpoint data that monitors command lines. + +====Required field==== + +* process_name + +* _time + +* dest_device_id + +* dest_user_id + +* process + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +This detection may flag suspiciously long command lines when there is not sufficient evidence (samples) for a given process that this detection is tracking; or when there is high variability in the length of the command line for the tracked process. Also, some legitimate applications may use long command lines. Such is the case of Ansible, that encodes Powershell scripts using long base64. Attackers may use this technique to obfuscate their payloads. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Unusually long command line=== +Command lines that are extremely long may be indicative of malicious activity on your hosts. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-12-08 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes by Processes.user Processes.dest Processes.process_name Processes.process +| `drop_dm_object_name("Processes")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval processlen=len(process) +| eventstats stdev(processlen) as stdev, avg(processlen) as avg by dest +| stats max(processlen) as maxlen, values(stdev) as stdevperhost, values(avg) as avgperhost by dest, user, process_name, process +| `unusually_long_command_line_filter` +|eval threshold = 3 +| where maxlen > ((threshold*stdevperhost) + avgperhost) + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Possible_Backdoor_Activity_Associated_With_MUDCARP_Espionage_Campaigns|Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships, from your endpoints to populate the Endpoint data model in the Processes node. The command-line arguments are mapped to the process field in the Endpoint data model. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some legitimate applications start with long command lines. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.003/atomic_red_team/windows-sysmon.log + + +''version'': 5 +
+
+ +---- + +===Unusually long command line - mltk=== +Command lines that are extremely long may be indicative of malicious activity on your hosts. This search leverages the Machine Learning Toolkit (MLTK) to help identify command lines with lengths that are unusual for a given user. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2019-05-08 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes by Processes.user Processes.dest Processes.process_name Processes.process +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval processlen=len(process) +| search user!=unknown +| apply cmdline_pdfmodel threshold=0.01 +| rename "IsOutlier(processlen)" as isOutlier +| search isOutlier > 0 +| table firstTime lastTime user dest process_name process processlen count +| `unusually_long_command_line___mltk_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_Command-Line_Executions|Suspicious Command-Line Executions]] + +* [[Documentation:ESSOC:stories:UseCase#Unusual_Processes|Unusual Processes]] + +* [[Documentation:ESSOC:stories:UseCase#Possible_Backdoor_Activity_Associated_With_MUDCARP_Espionage_Campaigns|Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting endpoint data that monitors command lines and populates the Endpoint data model in the Processes node. The command-line arguments are mapped to the "process" field in the Endpoint data model. In addition, MLTK version >= 4.2 must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of Command Line Length - MLTK" must be executed before this detection search, as it builds an ML model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some legitimate applications use long command lines for installs or updates. You should review identified command lines for legitimacy. You may modify the first part of the search to omit legitimate command lines from consideration. If you are seeing more results than desired, you may consider changing the value of threshold in the search to a smaller value. You should also periodically re-run the support search to re-build the ML model on the latest data. You may get unexpected results if the user identified in the results is not present in the data used to build the associated model. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Wbadmin delete system backups=== +This search looks for flags passed to wbadmin.exe (Windows Backup Administrator Tool) that delete backup files. This is typically used by ransomware to prevent recovery. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490] +* '''Last Updated''': 2021-01-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=wbadmin.exe Processes.process="*delete*" AND (Processes.process="*catalog*" OR Processes.process="*systemstatebackup*") by Processes.process_name Processes.process Processes.parent_process_name Processes.dest Processes.user +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `wbadmin_delete_system_backups_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +You must be ingesting endpoint data that tracks process activity, including parent-child relationships from your endpoints to populate the Endpoint data model in the Processes node. Tune based on parent process names. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Administrators may modify the boot configuration. + +====Reference==== + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1490/T1490.md + +* https://thedfirreport.com/2020/10/08/ryuks-return/ + +* https://attack.mitre.org/techniques/T1490/ + +* https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/wbadmin + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1490/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Wmi permanent event subscription=== +This search looks for the creation of WMI permanent event subscriptions. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2018-10-23 + +
+
+ +====Search==== +`wmi` EventCode=5861 Binding +| rex field=Message "Consumer =\s+(?[^; +|^$]+)" +| search consumer!="NTEventLogEventConsumer=\"SCM Event Log Consumer\"" +| stats count min(_time) as firstTime max(_time) as lastTime by ComputerName, consumer, Message +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| rename ComputerName as dest +| `wmi_permanent_event_subscription_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting the Windows WMI activity logs. This can be done by adding a stanza to inputs.conf on the system generating logs with a title of [WinEventLog://Microsoft-Windows-WMI-Activity/Operational]. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, administrators may use event subscriptions for legitimate purposes. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Wmi permanent event subscription - sysmon=== +This search looks for the creation of WMI permanent event subscriptions. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1546.003/ T1546.003] +* '''Last Updated''': 2020-12-08 + +
+
+ +====Search==== +`sysmon` EventCode=21 +| rename host as dest +| table _time, dest, user, Operation, EventType, Query, Consumer, Filter +| `wmi_permanent_event_subscription___sysmon_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +To successfully implement this search, you must be collecting Sysmon data using Sysmon version 6.1 or greater and have Sysmon configured to generate alerts for WMI activity. In addition, you must have at least version 6.0.4 of the Sysmon TA installed to properly parse the fields. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1546.003 +| Windows Management Instrumentation Event Subscription +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Although unlikely, administrators may use event subscriptions for legitimate purposes. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.003/atomic_red_team/windows-sysmon.log + + +''version'': 2 +
+
+ +---- + +===Wmi temporary event subscription=== +This search looks for the creation of WMI temporary event subscriptions. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047] +* '''Last Updated''': 2018-10-23 + +
+
+ +====Search==== +`wmi` EventCode=5860 Temporary +| rex field=Message "NotificationQuery =\s+(?[^; +|^$]+)" +| search query!="SELECT * FROM Win32_ProcessStartTrace WHERE ProcessName = 'wsmprovhost.exe'" AND query!="SELECT * FROM __InstanceOperationEvent WHERE TargetInstance ISA 'AntiVirusProduct' OR TargetInstance ISA 'FirewallProduct' OR TargetInstance ISA 'AntiSpywareProduct'" +| stats count min(_time) as firstTime max(_time) as lastTime by ComputerName, query +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `wmi_temporary_event_subscription_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_WMI_Use|Suspicious WMI Use]] + + +====How To Implement==== +To successfully implement this search, you must be ingesting the Windows WMI activity logs. This can be done by adding a stanza to inputs.conf on the system generating logs with a title of [WinEventLog://Microsoft-Windows-WMI-Activity/Operational]. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Some software may create WMI temporary event subscriptions for various purposes. The included search contains an exception for two of these that occur by default on Windows 10 systems. You may need to modify the search to create exceptions for other legitimate events. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Windows adfind exe=== +This search looks for the execution of `adfind.exe` with command-line arguments that it uses by default. Specifically the filter or search functions. It also considers the arguments necessary like objectcategory, see readme for more details: https://www.joeware.net/freetools/tools/adfind/usage.htm. This has been seen used before by Wizard Spider, FIN6 and actors whom also launched SUNBURST. AdFind.exe is usually used a recon tool to enumare a domain controller. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1018/ T1018] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process=*-f* OR Processes.process=*-b*) AND (Processes.process=*objectcategory* OR Processes.process=*-gcb* OR Processes.process=*-sc*) by Processes.dest Processes.user Processes.process_name Processes.process Processes.parent_process Processes.process_id Processes.parent_process_id +| `drop_dm_object_name(Processes)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_adfind_exe_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting logs with the process name, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1018 +| Remote System Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +administrators rarely use adfind, usually not used for legitimate reasons + +====Reference==== + +* https://www.volexity.com/blog/2020/12/14/dark-halo-leverages-solarwinds-compromise-to-breach-organizations/ + +* https://www.fireeye.com/blog/threat-research/2019/01/a-nasty-trick-from-credential-theft-malware-to-business-disruption.html + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1018/atomic_red_team/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + +===Windows event log cleared=== +This search looks for Windows events that indicate one of the Windows event logs has been purged. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070.001/ T1070.001] +* '''Last Updated''': 2020-07-06 + +
+
+ +====Search==== +(`wineventlog_security` (EventCode=1102 OR EventCode=1100)) OR (`wineventlog_system` EventCode=104) +| stats count min(_time) as firstTime max(_time) as lastTime by EventCode dest +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `windows_event_log_cleared_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_Log_Manipulation|Windows Log Manipulation]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + + +====How To Implement==== +To successfully implement this search, you need to be ingesting Windows event logs from your hosts. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070.001 +| Clear Windows Event Logs +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +It is possible that these logs may be legitimately cleared by Administrators. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-security.log + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1070.001/atomic_red_team/windows-system.log + + +''version'': 4 +
+
+ +---- + +===Windows security account manager stopped=== +The search looks for a Windows Security Account Manager (SAM) was stopped via command-line. This is consistent with Ryuk infections across a fleet of endpoints. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1489/ T1489] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Processes WHERE ("Processes.process_name"="net*.exe" "Processes.process"="*stop \"samss\"*") BY "Processes.dest", "Processes.user", "Processes.process" +| `drop_dm_object_name(Processes)` +| `security_content_ctime(lastTime)` +| `security_content_ctime(firstTime)` +| `windows_security_account_manager_stopped_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must be ingesting data that records the process-system activity from your hosts to populate the Endpoint Processes data-model object. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1489 +| Service Stop +| Impact +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +SAM is a critical windows service, stopping it would cause major issues on an endpoint this makes false positive rare. AlthoughNo false positives have been identified. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/ryuk/windows-sysmon.log + + +''version'': 1 +
+
+ +---- + + + +==Network== + + +===Dns query length outliers - mltk=== +This search allows you to identify DNS requests that are unusually large for the record type being requested in your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.004/ T1071.004] +* '''Last Updated''': 2020-01-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as start_time max(_time) as end_time values(DNS.src) as src values(DNS.dest) as dest from datamodel=Network_Resolution by DNS.query DNS.record_type +| search DNS.record_type=* +| `drop_dm_object_name(DNS)` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| eval query_length = len(query) +| apply dns_query_pdfmodel threshold=0.01 +| rename "IsOutlier(query_length)" as isOutlier +| search isOutlier > 0 +| sort -query_length +| table start_time end_time query record_type count src dest query_length +| `dns_query_length_outliers___mltk_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. In addition, the Machine Learning Toolkit (MLTK) version 4.2 or greater must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of DNS Query Length - MLTK" must be executed before this detection search, because it builds a machine-learning (ML) model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment.\ +This search produces fields (`query`,`query_length`,`count`) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable. To see the additional metadata, add the following fields, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** DNS Query, **Field:** query\ +1. \ +1. **Label:** DNS Query Length, **Field:** query_length\ +1. \ +1. **Label:** Number of events, **Field:** count\ +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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.004 +| DNS +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +If you are seeing more results than desired, you may consider reducing the value for threshold in the search. You should also periodically re-run the support search to re-build the ML model on the latest data. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Dns query length with high standard deviation=== +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. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003] +* '''Last Updated''': 2021-01-18 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution 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` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +It's possible there can be long domain names that are legitimate. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1048.003/long_dns_queries/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Dns record changed=== +The search takes the DNS records and their answers results of the discovered_dns_records lookup and finds if any records have changed by searching DNS response from the Network_Resolution datamodel across the last day. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.004/ T1071.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| inputlookup discovered_dns_records +| rename answer as discovered_answer +| join domain[ +|tstats `security_content_summariesonly` count values(DNS.record_type) as type, values(DNS.answer) as current_answer values(DNS.src) as src from datamodel=Network_Resolution where DNS.message_type=RESPONSE DNS.answer!="unknown" DNS.answer!="" by DNS.query +| rename DNS.query as query +| where query!="unknown" +| rex field=query "(?\w+\.\w+?)(?:$ +|/)"] +| makemv delim=" " answer +| makemv delim=" " type +| sort -count +| table count,src,domain,type,query,current_answer,discovered_answer +| makemv current_answer +| mvexpand current_answer +| makemv discovered_answer +| eval n=mvfind(discovered_answer, current_answer) +| where isnull(n) +| `dns_record_changed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DNS_Hijacking|DNS Hijacking]] + + +====How To Implement==== +To successfully implement this search you will need to ensure that DNS data is populating the `Network_Resolution` data model. It also requires that the `discover_dns_record` lookup table be populated by the included support search "Discover DNS record". \ + **Splunk>Phantom Playbook Integration**\ +If Splunk>Phantom is also configured in your environment, a Playbook called "DNS Hijack Enrichment" can be configured to run when any results are found by this detection search. The playbook takes in the DNS record changed and uses Geoip, whois, Censys and PassiveTotal to detect if DNS issuers changed. To use this integration, install the Phantom App for Splunk `https://splunkbase.splunk.com/app/3411/`, add the correct hostname to the "Phantom Instance" field in the Adaptive Response Actions when configuring this detection search, and set the corresponding Playbook to active. \ +(Playbook Link:`https://my.phantom.us/4.2/playbook/dns-hijack-enrichment/`).\ + + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.004 +| DNS +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +Legitimate DNS changes can be detected in this search. Investigate, verify and update the list of provided current answers for the domains in question as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Detect arp poisoning=== +By enabling Dynamic ARP Inspection as a Layer 2 Security measure on the organization's network devices, we will be able to detect ARP Poisoning attacks in the Infrastructure. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1557.002/ T1557.002] +* '''Last Updated''': 2020-08-11 + +
+
+ +====Search==== +`cisco_networks` facility="PM" mnemonic="ERR_DISABLE" disable_cause="arp-inspection" +| eval src_interface=src_int_prefix_long+src_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime count BY host src_interface +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_arp_poisoning_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with DHCP Snooping (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/security/configuration_guide/b_sec_152ex_2960-x_cg/b_sec_152ex_2960-x_cg_chapter_01101.html) and Dynamic ARP Inspection (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_2_e/security/configuration_guide/b_sec_1522e_2960x_cg/b_sec_1522e_2960x_cg_chapter_01111.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1557.002 +| ARP Cache Poisoning +| Collection, Credential Access +|} + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +This search might be prone to high false positives if DHCP Snooping or ARP inspection has been incorrectly configured, or if a device normally sends many ARP packets (unlikely). + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect ipv6 network infrastructure threats=== +By enabling IPv6 First Hop Security as a Layer 2 Security measure on the organization's network devices, we will be able to detect various attacks such as packet forging in the Infrastructure. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1557.002/ T1557.002] +* '''Last Updated''': 2020-10-28 + +
+
+ +====Search==== +`cisco_networks` facility="SISF" mnemonic IN ("IP_THEFT","MAC_THEFT","MAC_AND_IP_THEFT","PAK_DROP") +| eval src_interface=src_int_prefix_long+src_int_suffix +| eval dest_interface=dest_int_prefix_long+dest_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime values(src_mac) AS src_mac values(src_vlan) AS src_vlan values(mnemonic) AS mnemonic values(vendor_explanation) AS vendor_explanation values(src_ip) AS src_ip values(dest_ip) AS dest_ip values(dest_interface) AS dest_interface values(action) AS action count BY host src_interface +| table host src_interface dest_interface src_mac src_ip dest_ip src_vlan mnemonic vendor_explanation action count +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_ipv6_network_infrastructure_threats_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with one or more First Hop Security measures such as RA Guard, DHCP Guard and/or device tracking. See References for more information. The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1557.002 +| ARP Cache Poisoning +| Collection, Credential Access +|} + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +None currently known + +====Reference==== + +* https://www.ciscolive.com/c/dam/r/ciscolive/emea/docs/2019/pdf/BRKSEC-3200.pdf + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-ra-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-snooping.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-dad-proxy.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-nd-mcast-supp.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-dhcpv6-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ip6-src-guard.html + +* https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6_fhsec/configuration/xe-16-12/ip6f-xe-16-12-book/ipv6-dest-guard.html + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect large outbound icmp packets=== +This search looks for outbound ICMP packets with a packet size larger than 1,000 bytes. Various threat actors have been known to use ICMP as a command and control channel for their attack infrastructure. Large ICMP packets from an endpoint to a remote host may be indicative of this activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1095/ T1095] +* '''Last Updated''': 2018-06-01 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count earliest(_time) as firstTime latest(_time) as lastTime values(All_Traffic.action) values(All_Traffic.bytes) from datamodel=Network_Traffic where All_Traffic.action !=blocked All_Traffic.dest_category !=internal (All_Traffic.protocol=icmp OR All_Traffic.transport=icmp) All_Traffic.bytes > 1000 by All_Traffic.src_ip All_Traffic.dest_ip +| `drop_dm_object_name("All_Traffic")` +| search ( dest_ip!=10.0.0.0/8 AND dest_ip!=172.16.0.0/12 AND dest_ip!=192.168.0.0/16) +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_large_outbound_icmp_packets_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +In order to run this search effectively, we highly recommend that you leverage the Assets and Identity framework. It is important that you have a good understanding of how your network segments are designed and that you are able to distinguish internal from external address space. Add a category named `internal` to the CIDRs that host the company's assets in the `assets_by_cidr.csv` lookup file, which is located in `$SPLUNK_HOME/etc/apps/SA-IdentityManagement/lookups/`. More information on updating this lookup can be found here: https://docs.splunk.com/Documentation/ES/5.0.0/Admin/Addassetandidentitydata. This search also requires you to be ingesting your network traffic and populating the Network_Traffic data model + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1095 +| Non-Application Layer Protocol +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +ICMP packets are used in a variety of ways to help troubleshoot networking issues and ensure the proper flow of traffic. As such, it is possible that a large ICMP packet could be perfectly legitimate. If large ICMP packets are associated with command and control traffic, there will typically be a large number of these packets observed over time. If the search is providing a large number of false positives, you can modify the macro `detect_large_outbound_icmp_packets_filter` to adjust the byte threshold or add specific IP addresses to an allow list. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Detect outbound smb traffic=== +This search looks for outbound SMB connections made by hosts within your network to the Internet. SMB traffic is used for Windows file-sharing activity. One of the techniques often used by attackers involves retrieving the credential hash using an SMB request made to a compromised server controlled by the threat actor. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.002/ T1071.002] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` earliest(_time) as start_time latest(_time) as end_time values(All_Traffic.action) as action values(All_Traffic.app) as app values(All_Traffic.dest_ip) as dest_ip values(All_Traffic.dest_port) as dest_port values(sourcetype) as sourcetype count from datamodel=Network_Traffic where ((All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app="smb") AND NOT (All_Traffic.action="blocked" OR All_Traffic.dest_category="internal" OR All_Traffic.dest_ip=10.0.0.0/8 OR All_Traffic.dest_ip=172.16.0.0/12 OR All_Traffic.dest_ip=192.168.0.0/16 OR All_Traffic.dest_ip=100.64.0.0/10)) by All_Traffic.src_ip +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(start_time)` +| `security_content_ctime(end_time)` +| `detect_outbound_smb_traffic_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +In order to run this search effectively, we highly recommend that you leverage the Assets and Identity framework. It is important that you have good understanding of how your network segments are designed, and be able to distinguish internal from external address space. Add a category named `internal` to the CIDRs that host the companys assets in `assets_by_cidr.csv` lookup file, which is located in `$SPLUNK_HOME/etc/apps/SA-IdentityManagement/lookups/`. More information on updating this lookup can be found here: https://docs.splunk.com/Documentation/ES/5.0.0/Admin/Addassetandidentitydata. This search also requires you to be ingesting your network traffic and populating the Network_Traffic data model + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.002 +| File Transfer Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Known False Positives==== +It is likely that the outbound Server Message Block (SMB) traffic is legitimate, if the company's internal networks are not well-defined in the Assets and Identity Framework. Categorize the internal CIDR blocks as `internal` in the lookup file to avoid creating notable events for traffic destined to those CIDR blocks. Any other network connection that is going out to the Internet should be investigated and blocked. Best practices suggest preventing external communications of all SMB versions and related protocols at the network boundary. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Detect port security violation=== +By enabling Port Security on a Cisco switch you can restrict input to an interface by limiting and identifying MAC addresses of the workstations that are allowed to access the port. When you assign secure MAC addresses to a secure port, the port does not forward packets with source addresses outside the group of defined addresses. If you limit the number of secure MAC addresses to one and assign a single secure MAC address, the workstation attached to that port is assured the full bandwidth of the port. If a port is configured as a secure port and the maximum number of secure MAC addresses is reached, when the MAC address of a workstation attempting to access the port is different from any of the identified secure MAC addresses, a security violation occurs. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1557.002/ T1557.002] +* '''Last Updated''': 2020-10-28 + +
+
+ +====Search==== +`cisco_networks` (facility="PM" mnemonic="ERR_DISABLE" disable_cause="psecure-violation") OR (facility="PORT_SECURITY" mnemonic="PSECURE_VIOLATION" OR mnemonic="PSECURE_VIOLATION_VLAN") +| eval src_interface=src_int_prefix_long+src_int_suffix +| stats min(_time) AS firstTime max(_time) AS lastTime values(disable_cause) AS disable_cause values(src_mac) AS src_mac values(src_vlan) AS src_vlan values(action) AS action count by host src_interface +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_port_security_violation_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with Port Security and Error Disable for this to work (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/port_sec.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1557.002 +| ARP Cache Poisoning +| Collection, Credential Access +|} + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + +* Exploitation + +* Actions on Objectives + + +====Known False Positives==== +This search might be prone to high false positives if you have malfunctioning devices connected to your ethernet ports or if end users periodically connect physical devices to the network. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect rogue dhcp server=== +By enabling DHCP Snooping as a Layer 2 Security measure on the organization's network devices, we will be able to detect unauthorized DHCP servers handing out DHCP leases to devices on the network (Man in the Middle attack). + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1557/ T1557] +* '''Last Updated''': 2020-08-11 + +
+
+ +====Search==== +`cisco_networks` facility="DHCP_SNOOPING" mnemonic="DHCP_SNOOPING_UNTRUSTED_PORT" +| stats min(_time) AS firstTime max(_time) AS lastTime count values(message_type) AS message_type values(src_mac) AS src_mac BY host +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_rogue_dhcp_server_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must be configured with DHCP Snooping enabled (see https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/security/configuration_guide/b_sec_152ex_2960-x_cg/b_sec_152ex_2960-x_cg_chapter_01101.html) and log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1557 +| Man-in-the-Middle +| Collection, Credential Access +|} + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +This search might be prone to high false positives if DHCP Snooping has been incorrectly configured or in the unlikely event that the DHCP server has been moved to another network interface. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect snicat sni exfiltration=== +This search looks for commands that the SNICat tool uses in the TLS SNI field. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1041/ T1041] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Search==== +`zeek_ssl` +| rex field=server_name "(?(LIST +|LS +|SIZE +|LD +|CB +|CD +|EX +|ALIVE +|EXIT +|WHERE +|finito)-[A-Za-z0-9]{16}\.)" +| stats count by src_ip dest_ip server_name snicat +| where count>0 +| table src_ip dest_ip server_name snicat +| `detect_snicat_sni_exfiltration_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Data_Exfiltration|Data Exfiltration]] + + +====How To Implement==== +You must be ingesting Zeek SSL data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting when any of the predefined SNICat commands are found within the server_name (SNI) field. These commands are LIST, LS, SIZE, LD, CB, EX, ALIVE, EXIT, WHERE, and finito. You can go further once this has been detected, and run other searches to decode the SNI data to prove or disprove if any data exfiltration has taken place. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1041 +| Exfiltration Over C2 Channel +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Unknown + +====Reference==== + +* https://www.mnemonic.no/blog/introducing-snicat/ + +* https://github.com/mnemonic-no/SNIcat + +* https://attack.mitre.org/techniques/T1041/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect software download to network device=== +Adversaries may abuse netbooting to load an unauthorized network device operating system from a Trivial File Transfer Protocol (TFTP) server. TFTP boot (netbooting) is commonly used by network administrators to load configuration-controlled network device images from a centralized management server. Netbooting is one option in the boot sequence and can be used to centralize, manage, and control device images. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1542.005/ T1542.005] +* '''Last Updated''': 2020-10-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where (All_Traffic.transport=udp AND All_Traffic.dest_port=69) OR (All_Traffic.transport=tcp AND All_Traffic.dest_port=21) OR (All_Traffic.transport=tcp AND All_Traffic.dest_port=22) AND All_Traffic.dest_category!=common_software_repo_destination AND All_Traffic.src_category=network OR All_Traffic.src_category=router OR All_Traffic.src_category=switch by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_software_download_to_network_device_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search looks for Network Traffic events to TFTP, FTP or SSH/SCP ports from network devices. Make sure to tag any network devices as network, router or switch in order for this detection to work. If the TFTP traffic doesn't traverse a firewall nor packet inspection, these events will not be logged. This is typically an issue if the TFTP server is on the same subnet as the network device. There is also a chance of the network device loading software using a DHCP assigned IP address (netboot) which is not in the Asset inventory. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1542.005 +| TFTP Boot +| Defense Evasion, Persistence +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +This search will also report any legitimate attempts of software downloads to network devices as well as outbound SSH sessions from network devices. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect traffic mirroring=== +Adversaries may leverage traffic mirroring in order to automate data exfiltration over compromised network infrastructure. Traffic mirroring is a native feature for some network devices and used for network analysis and may be configured to duplicate traffic and forward to one or more destinations for analysis by a network analyzer or other monitoring device. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1020.001/ T1020.001] +* '''Last Updated''': 2020-10-28 + +
+
+ +====Search==== +`cisco_networks` (facility="MIRROR" mnemonic="ETH_SPAN_SESSION_UP") OR (facility="SPAN" mnemonic="SESSION_UP") OR (facility="SPAN" mnemonic="PKTCAP_START") OR (mnemonic="CFGLOG_LOGGEDCMD" command="monitor session*") +| stats min(_time) AS firstTime max(_time) AS lastTime count BY host facility mnemonic +| `security_content_ctime(firstTime)` +|`security_content_ctime(lastTime)` +| `detect_traffic_mirroring_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Router_and_Infrastructure_Security|Router and Infrastructure Security]] + + +====How To Implement==== +This search uses a standard SPL query on logs from Cisco Network devices. The network devices must log with a severity level of minimum "5 - notification". The search also requires that the Cisco Networks Add-on for Splunk (https://splunkbase.splunk.com/app/1467) is used to parse the logs from the Cisco network devices and that the devices have been configured according to the documentation of the Cisco Networks Add-on. Also note that an attacker may disable logging from the device prior to enabling traffic mirroring. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1020.001 +| Traffic Duplication +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +This search will return false positives for any legitimate traffic captures by network administrators. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect unauthorized assets by mac address=== +By populating the organization's assets within the assets_by_str.csv, we will be able to detect unauthorized devices that are trying to connect with the organization's network by inspecting DHCP request packets, which are issued by devices when they attempt to obtain an IP address from the DHCP server. The MAC address associated with the source of the DHCP request is checked against the list of known devices, and reports on those that are not found. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Sessions +* '''ATT&CK''': +* '''Last Updated''': 2017-09-13 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Sessions where nodename=All_Sessions.DHCP All_Sessions.signature=DHCPREQUEST by All_Sessions.src_ip All_Sessions.dest_mac +| dedup All_Sessions.dest_mac +| `drop_dm_object_name("Network_Sessions")` +|`drop_dm_object_name("All_Sessions")` +| search NOT [ +| inputlookup asset_lookup_by_str +|rename mac as dest_mac +| fields + dest_mac] +| `detect_unauthorized_assets_by_mac_address_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Asset_Tracking|Asset Tracking]] + + +====How To Implement==== +This search uses the Network_Sessions data model shipped with Enterprise Security. It leverages the Assets and Identity framework to populate the assets_by_str.csv file located in SA-IdentityManagement, which will contain a list of known authorized organizational assets including their MAC addresses. Ensure that all inventoried systems have their MAC address populated. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + +* Actions on Objectives + + +====Known False Positives==== +This search might be prone to high false positives. Please consider this when conducting analysis or investigations. Authorized devices may be detected as unauthorized. If this is the case, verify the MAC address of the system responsible for the false positive and add it to the Assets and Identity framework with the proper information. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect windows dns sigred via splunk stream=== +This search detects SIGRed via Splunk Stream. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1203/ T1203] +* '''Last Updated''': 2020-07-28 + +
+
+ +====Search==== +`stream_dns` +| spath "query_type{}" +| search "query_type{}" IN (SIG,KEY) +| spath protocol_stack +| search protocol_stack="ip:tcp:dns" +| append [search `stream_tcp` bytes_out>65000] +| `detect_windows_dns_sigred_via_splunk_stream_filter` +| stats count by flow_id +| where count>1 +| fields - count + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_DNS_SIGRed_CVE-2020-1350|Windows DNS SIGRed CVE-2020-1350]] + + +====How To Implement==== +You must be ingesting Splunk Stream DNS and Splunk Stream TCP. We are detecting SIG and KEY records via stream:dns and TCP payload over 65KB in size via stream:tcp. Replace the macro definitions ('stream:dns' and 'stream:tcp') with configurations for your Splunk environment. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1203 +| Exploitation for Client Execution +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect windows dns sigred via zeek=== +This search detects SIGRed via Zeek DNS and Zeek Conn data. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1203/ T1203] +* '''Last Updated''': 2020-07-28 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where DNS.query_type IN (SIG,KEY) by DNS.flow_id +| rename DNS.flow_id as flow_id +| append [ +| tstats `security_content_summariesonly` count from datamodel=Network_Traffic where All_Traffic.bytes_in>65000 by All_Traffic.flow_id +| rename All_Traffic.flow_id as flow_id] +| `detect_windows_dns_sigred_via_zeek_filter` +| stats count by flow_id +| where count>1 +| fields - count + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Windows_DNS_SIGRed_CVE-2020-1350|Windows DNS SIGRed CVE-2020-1350]] + + +====How To Implement==== +You must be ingesting Zeek DNS and Zeek Conn data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting SIG and KEY records via bro:dns:json and TCP payload over 65KB in size via bro:conn:json. The Network Resolution and Network Traffic datamodels are in use for this search. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1203 +| Exploitation for Client Execution +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect zerologon via zeek=== +This search detects attempts to run exploits for the Zerologon CVE-2020-1472 vulnerability via Zeek RPC + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2020-09-15 + +
+
+ +====Search==== +`zeek_rpc` operation IN (NetrServerPasswordSet2,NetrServerReqChallenge,NetrServerAuthenticate3) +| bin span=5m _time +| stats values(operation) dc(operation) as opscount count(eval(operation=="NetrServerReqChallenge")) as challenge count(eval(operation=="NetrServerAuthenticate3")) as authcount count(eval(operation=="NetrServerPasswordSet2")) as passcount count as totalcount by _time,src_ip,dest_ip +| search opscount=3 authcount>4 passcount>0 +| search `detect_zerologon_via_zeek_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Detect_Zerologon_Attack|Detect Zerologon Attack]] + + +====How To Implement==== +You must be ingesting Zeek DCE-RPC data into Splunk. Zeek data should also be getting ingested in JSON format. We are detecting when all three RPC operations (NetrServerReqChallenge, NetrServerAuthenticate3, NetrServerPasswordSet2) are splunk_security_essentials_app via bro:rpc:json. These three operations are then correlated on the Zeek UID field. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://www.secura.com/blog/zero-logon + +* https://github.com/SecuraBV/CVE-2020-1472 + +* https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1472 + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect hosts connecting to dynamic domain providers=== +Malicious actors often abuse legitimate Dynamic DNS services to host malicious payloads or interactive command and control nodes. Attackers will automate domain resolution changes by routing dynamic domains to countless IP addresses to circumvent firewall blocks, block lists as well as frustrate a network defenders analytic and investigative processes. This search will look for DNS queries made from within your infrastructure to suspicious dynamic domains. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1189/ T1189] +* '''Last Updated''': 2021-01-14 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(DNS.answer) as answer min(_time) as firstTime from datamodel=Network_Resolution by DNS.query host +| `drop_dm_object_name("DNS")` +| `security_content_ctime(firstTime)` +| `dynamic_dns_providers` +| `detect_hosts_connecting_to_dynamic_domain_providers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Data_Protection|Data Protection]] + +* [[Documentation:ESSOC:stories:UseCase#Prohibited_Traffic_Allowed_or_Protocol_Mismatch|Prohibited Traffic Allowed or Protocol Mismatch]] + +* [[Documentation:ESSOC:stories:UseCase#DNS_Hijacking|DNS Hijacking]] + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Dynamic_DNS|Dynamic DNS]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +First, you'll need to ingest data from your DNS operations. This can be done by ingesting logs from your server or data, collected passively by Splunk Stream or a similar solution. Specifically, data that contains the domain that is being queried and the IP of the host originating the request must be populating the `Network_Resolution` data model. This search also leverages a lookup file, `dynamic_dns_providers_default.csv`, which contains a non-exhaustive list of Dynamic DNS providers. Please consider updating the local lookup periodically by adding new domains to the list of `dynamic_dns_providers_local.csv`.\ +This search produces fields (query, answer, isDynDNS) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. These fields contribute additional context to the notable event. To see the additional metadata, add the following fields, if not already present, to Incident Review. Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry):\\n1. **Label:** DNS Query, **Field:** query\ +1. \ +1. **Label:** DNS Answer, **Field:** answer\ +1. \ +1. **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` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1189 +| Drive-by Compromise +| Initial Access +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Actions on Objectives + + +====Known False Positives==== +Some users and applications may leverage Dynamic DNS to reach out to some domains on the Internet since dynamic DNS by itself is not malicious, however this activity must be verified. + +====Reference==== + + +====Test Dataset==== + +* https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1189/dyn_dns_site/windows-sysmon.log + + +''version'': 3 +
+
+ +---- + +===Excessive dns failures=== +This search identifies DNS query failures by counting the number of DNS responses that do not indicate success, and trigger on more than 50 occurrences. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.004/ T1071.004] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values("DNS.query") as queries from datamodel=Network_Resolution where nodename=DNS "DNS.reply_code"!="No Error" "DNS.reply_code"!="NoError" DNS.reply_code!="unknown" NOT "DNS.query"="*.arpa" "DNS.query"="*.*" by "DNS.src","DNS.query" +| `drop_dm_object_name("DNS")` +| lookup cim_corporate_web_domain_lookup domain as query OUTPUT domain +| where isnull(domain) +| lookup update=true alexa_lookup_by_str domain as query OUTPUT rank +| where isnull(rank) +| stats sum(count) as count mode(queries) as queries by src +| `get_asset(src)` +| where count>50 +| `excessive_dns_failures_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Suspicious_DNS_Traffic|Suspicious DNS Traffic]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +To successfully implement this search you must ensure that DNS data is populating the Network_Resolution data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.004 +| DNS +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +It is possible legitimate traffic can trigger this rule. Please investigate as appropriate. The threshold for generating an event can also be customized to better suit your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Hosts receiving high volume of network traffic from email server=== +This search looks for an increase of data transfers from your email server to your clients. This could be indicative of a malicious actor collecting data using your email server. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.002/ T1114.002] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` sum(All_Traffic.bytes_in) as bytes_in from datamodel=Network_Traffic where All_Traffic.dest_category=email_server by All_Traffic.src_ip _time span=1d +| `drop_dm_object_name("All_Traffic")` +| eventstats avg(bytes_in) as avg_bytes_in stdev(bytes_in) as stdev_bytes_in +| eventstats count as num_data_samples avg(eval(if(_time < relative_time(now(), "@d"), bytes_in, null))) as per_source_avg_bytes_in stdev(eval(if(_time < relative_time(now(), "@d"), bytes_in, null))) as per_source_stdev_bytes_in by src_ip +| eval minimum_data_samples = 4, deviation_threshold = 3 +| where num_data_samples >= minimum_data_samples AND bytes_in > (avg_bytes_in + (deviation_threshold * stdev_bytes_in)) AND bytes_in > (per_source_avg_bytes_in + (deviation_threshold * per_source_stdev_bytes_in)) AND _time >= relative_time(now(), "@d") +| eval num_standard_deviations_away_from_server_average = round(abs(bytes_in - avg_bytes_in) / stdev_bytes_in, 2), num_standard_deviations_away_from_client_average = round(abs(bytes_in - per_source_avg_bytes_in) / per_source_stdev_bytes_in, 2) +| table src_ip, _time, bytes_in, avg_bytes_in, per_source_avg_bytes_in, num_standard_deviations_away_from_server_average, num_standard_deviations_away_from_client_average +| `hosts_receiving_high_volume_of_network_traffic_from_email_server_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Collection_and_Staging|Collection and Staging]] + + +====How To Implement==== +This search requires you to be ingesting your network traffic and populating the Network_Traffic data model. Your email servers must be categorized as "email_server" for the search to work, as well. You may need to adjust the deviation_threshold and minimum_data_samples values based on the network traffic in your environment. The "deviation_threshold" field is a multiplying factor to control how much variation you're willing to tolerate. The "minimum_data_samples" field is the minimum number of connections of data samples required for the statistic to be valid. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.002 +| Remote Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +The false-positive rate will vary based on how you set the deviation_threshold and data_samples values. Our recommendation is to adjust these values based on your network traffic to and from your email servers. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Large volume of dns any queries=== +The search is used to identify attempts to use your DNS Infrastructure for DDoS purposes via a DNS amplification attack leveraging ANY queries. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1498.002/ T1498.002] +* '''Last Updated''': 2017-09-20 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Resolution where nodename=DNS "DNS.message_type"="QUERY" "DNS.record_type"="ANY" by "DNS.dest" +| `drop_dm_object_name("DNS")` +| where count>200 +| `large_volume_of_dns_any_queries_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#DNS_Amplification_Attacks|DNS Amplification Attacks]] + + +====How To Implement==== +To successfully implement this search you must ensure that DNS data is populating the Network_Resolution data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1498.002 +| Reflection Amplification +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Legitimate ANY requests may trigger this search, however it is unusual to see a large volume of them under typical circumstances. You may modify the threshold in the search to better suit your environment. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Prohibited network traffic allowed=== +This search looks for network traffic defined by port and transport layer protocol in the Enterprise Security lookup table "lookup_interesting_ports", that is marked as prohibited, and has an associated 'allow' action in the Network_Traffic data model. This could be indicative of a misconfigured network device. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048/ T1048] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.action = allowed by All_Traffic.src_ip All_Traffic.dest_ip All_Traffic.dest_port All_Traffic.action +| lookup update=true interesting_ports_lookup dest_port as All_Traffic.dest_port OUTPUT app is_prohibited note transport +| search is_prohibited=true +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `prohibited_network_traffic_allowed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Prohibited_Traffic_Allowed_or_Protocol_Mismatch|Prohibited Traffic Allowed or Protocol Mismatch]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest data from firewalls or other network control devices that mediate the traffic allowed into an environment. This is necessary so that the search can identify an 'action' taken on the traffic of interest. The search requires the Network_Traffic data model be populated. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Delivery + +* Command and Control + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Protocol or port mismatch=== +This search looks for network traffic on common ports where a higher layer protocol does not match the port that is being used. For example, this search should identify cases where protocols other than HTTP are running on TCP port 80. This can be used by attackers to circumvent firewall restrictions, or as an attempt to hide malicious communications over ports and protocols that are typically allowed and not well inspected. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where (All_Traffic.app=dns NOT All_Traffic.dest_port=53) OR ((All_Traffic.app=web-browsing OR All_Traffic.app=http) NOT (All_Traffic.dest_port=80 OR All_Traffic.dest_port=8080 OR All_Traffic.dest_port=8000)) OR (All_Traffic.app=ssl NOT (All_Traffic.dest_port=443 OR All_Traffic.dest_port=8443)) OR (All_Traffic.app=smtp NOT All_Traffic.dest_port=25) by All_Traffic.src_ip, All_Traffic.dest_ip, All_Traffic.app, All_Traffic.dest_port +|`security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `protocol_or_port_mismatch_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Prohibited_Traffic_Allowed_or_Protocol_Mismatch|Prohibited Traffic Allowed or Protocol Mismatch]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + + +====How To Implement==== +Running this search properly requires a technology that can inspect network traffic and identify common protocols. Technologies such as Bro and Palo Alto Networks firewalls are two examples that will identify protocols via inspection, and not just assume a specific protocol based on the transport protocol and ports. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +None identified + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Protocols passing authentication in cleartext=== +This search looks for cleartext protocols at risk of leaking credentials. Currently, this consists of legacy protocols such as telnet, POP3, IMAP, and non-anonymous FTP sessions. While some of these protocols can be used over SSL, they typically run on different assigned ports in those cases. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': +* '''Last Updated''': 2020-11-04 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.transport="tcp" AND (All_Traffic.dest_port="23" OR All_Traffic.dest_port="143" OR All_Traffic.dest_port="110" OR (All_Traffic.dest_port="21" AND All_Traffic.user != "anonymous")) by All_Traffic.user All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `protocols_passing_authentication_in_cleartext_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Use_of_Cleartext_Protocols|Use of Cleartext Protocols]] + + +====How To Implement==== +This search requires you to be ingesting your network traffic, and populating the Network_Traffic data model. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Reconnaissance + +* Actions on Objectives + + +====Known False Positives==== +Some networks may use kerberized FTP or telnet servers, however, this is rare. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Remote desktop network bruteforce=== +This search looks for RDP application network traffic and filters any source/destination pair generating more than twice the standard deviation of the average traffic. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.001/ T1021.001] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.app=rdp by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| eventstats stdev(count) AS stdev avg(count) AS avg p50(count) AS p50 +| where count>(avg + stdev*2) +| rename All_Traffic.src AS src All_Traffic.dest AS dest +| table firstTime lastTime src dest count avg p50 stdev +| `remote_desktop_network_bruteforce_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + + +====How To Implement==== +You must ensure that your network traffic data is populating the Network_Traffic data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Reconnaissance + +* Delivery + + +====Known False Positives==== +RDP gateways may have unusually high amounts of traffic from all other hosts' RDP applications in the network. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Remote desktop network traffic=== +This search looks for network traffic on TCP/3389, the default port used by remote desktop. While remote desktop traffic is not uncommon on a network, it is usually associated with known hosts. This search will ignore common RDP sources and common RDP destinations so you can focus on the uncommon uses of remote desktop on your network. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.001/ T1021.001] +* '''Last Updated''': 2020-07-07 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.dest_port=3389 AND All_Traffic.dest_category!=common_rdp_destination AND All_Traffic.src_category!=common_rdp_source by All_Traffic.src All_Traffic.dest All_Traffic.dest_port +| `drop_dm_object_name("All_Traffic")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `remote_desktop_network_traffic_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Ryuk_Ransomware|Ryuk Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Lateral_Movement|Lateral Movement]] + + +====How To Implement==== +To successfully implement this search you need to identify systems that commonly originate remote desktop traffic and that commonly receive remote desktop traffic. You can use the included support search "Identify Systems Creating Remote Desktop Traffic" to identify systems that originate the traffic and the search "Identify Systems Receiving Remote Desktop Traffic" to identify systems that receive a lot of remote desktop traffic. After identifying these systems, you will need to add the "common_rdp_source" or "common_rdp_destination" category to that system depending on the usage, using the Enterprise Security Assets and Identities framework. This can be done by adding an entry in the assets.csv file located in SA-IdentityManagement/lookups. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +Remote Desktop may be used legitimately by users on the network. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Smb traffic spike=== +This search looks for spikes in the number of Server Message Block (SMB) traffic connections. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Network_Traffic where All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app=smb by _time span=1h, All_Traffic.src +| `drop_dm_object_name("All_Traffic")` +| eventstats max(_time) as maxtime +| stats count as num_data_samples max(eval(if(_time >= relative_time(maxtime, "-70m@m"), count, null))) as count avg(eval(if(_time upperBound AND num_data_samples >=50, 1, 0) +| where isOutlier=1 +| table src count +| `smb_traffic_spike_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +This search requires you to be ingesting your network traffic logs and populating the `Network_Traffic` data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +A file server may experience high-demand loads that could cause this analytic to trigger. + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Smb traffic spike - mltk=== +This search uses the Machine Learning Toolkit (MLTK) to identify spikes in the number of Server Message Block (SMB) connections. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1021.002/ T1021.002] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count values(All_Traffic.dest_ip) as dest values(All_Traffic.dest_port) as port from datamodel=Network_Traffic where All_Traffic.dest_port=139 OR All_Traffic.dest_port=445 OR All_Traffic.app=smb by _time span=1h, All_Traffic.src +| eval HourOfDay=strftime(_time, "%H") +| eval DayOfWeek=strftime(_time, "%A") +| `drop_dm_object_name(All_Traffic)` +| apply smb_pdfmodel threshold=0.001 +| rename "IsOutlier(count)" as isOutlier +| search isOutlier > 0 +| sort -count +| table _time src dest port count +| `smb_traffic_spike___mltk_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Emotet_Malware__DHS_Report_TA18-201A_|Emotet Malware DHS Report TA18-201A ]] + +* [[Documentation:ESSOC:stories:UseCase#Hidden_Cobra_Malware|Hidden Cobra Malware]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#DHS_Report_TA18-074A|DHS Report TA18-074A]] + + +====How To Implement==== +To successfully implement this search, you will need to ensure that DNS data is populating the Network_Resolution data model. In addition, the Machine Learning Toolkit (MLTK) version 4.2 or greater must be installed on your search heads, along with any required dependencies. Finally, the support search "Baseline of SMB Traffic - MLTK" must be executed before this detection search, because it builds a machine-learning (ML) model over the historical data used by this search. It is important that this search is run in the same app context as the associated support search, so that the model created by the support search is available for use. You should periodically re-run the support search to rebuild the model with the latest data available in your environment.\ +This search produces a field (Number of events,count) that are not yet supported by ES Incident Review and therefore cannot be viewed when a notable event is raised. This field contributes additional context to the notable. To see the additional metadata, add the following field, if not already present, to Incident Review - Event Attributes (Configure > Incident Management > Incident Review Settings > Add New Entry): \ +1. **Label:** Number of events, **Field:** count\ +Detailed documentation on how to create a new field within Incident Review is found here: `https://docs.splunk.com/Documentation/ES/5.3.0/Admin/Customizenotables#Add_a_field_to_the_notable_event_details` + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +If you are seeing more results than desired, you may consider reducing the value of the threshold in the search. You should also periodically re-run the support search to re-build the ML model on the latest data. Please update the `smb_traffic_spike_mltk_filter` macro to filter out false positive results + +====Reference==== + + +====Test Dataset==== + + +''version'': 3 +
+
+ +---- + +===Tor traffic=== +This search looks for network traffic identified as The Onion Router (TOR), a benign anonymity network which can be abused for a variety of nefarious purposes. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2020-07-22 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Network_Traffic where All_Traffic.app=tor AND All_Traffic.action=allowed by All_Traffic.src_ip All_Traffic.dest_ip All_Traffic.dest_port All_Traffic.action +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `drop_dm_object_name("All_Traffic")` +| `tor_traffic_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Prohibited_Traffic_Allowed_or_Protocol_Mismatch|Prohibited Traffic Allowed or Protocol Mismatch]] + +* [[Documentation:ESSOC:stories:UseCase#Ransomware|Ransomware]] + +* [[Documentation:ESSOC:stories:UseCase#Command_and_Control|Command and Control]] + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +In order to properly run this search, Splunk needs to ingest data from firewalls or other network control devices that mediate the traffic allowed into an environment. This is necessary so that the search can identify an 'action' taken on the traffic of interest. The search requires the Network_Traffic data model be populated. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Known False Positives==== +None at this time + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Unusually long content-type length=== +This search looks for unusually long strings in the Content-Type http header that the client sends the server. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-10-13 + +
+
+ +====Search==== +`stream_http` +| eval cs_content_type_length = len(cs_content_type) +| where cs_content_type_length > 100 +| table endtime src_ip dest_ip cs_content_type_length cs_content_type url +| `unusually_long_content_type_length_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Apache_Struts_Vulnerability|Apache Struts Vulnerability]] + + +====How To Implement==== +This particular search leverages data extracted from Stream:HTTP. You must configure the http stream using the Splunk Stream App on your Splunk Stream deployment server to extract the cs_content_type field. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +Very few legitimate Content-Type fields will have a length greater than 100 characters. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + + + +==Web== + + +===Detect f5 tmui rce cve-2020-5902=== +This search detects remote code exploit attempts on F5 BIG-IP, BIG-IQ, and Traffix SDC devices + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2020-08-02 + +
+
+ +====Search==== +`f5_bigip_rogue` +| regex _raw="(hsqldb; +|.*\\.\\.;.*)" +| search `detect_f5_tmui_rce_cve_2020_5902_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#F5_TMUI_RCE_CVE-2020-5902|F5 TMUI RCE CVE-2020-5902]] + + +====How To Implement==== +To consistently detect exploit attempts on F5 devices using the vulnerabilities contained within CVE-2020-5902 it is recommended to ingest logs via syslog. As many BIG-IP devices will have SSL enabled on their management interfaces, detections via wire data may not pick anything up unless you are decrypting SSL traffic in order to inspect it. I am using a regex string from a Cloudflare mitigation technique to try and always catch the offending string (..;), along with the other exploit of using (hsqldb;). + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Known False Positives==== +unknown + +====Reference==== + +* https://www.ptsecurity.com/ww-en/about/news/f5-fixes-critical-vulnerability-discovered-by-positive-technologies-in-big-ip-application-delivery-controller/ + +* https://support.f5.com/csp/article/K52145254 + +* https://blog.cloudflare.com/cve-2020-5902-helping-to-protect-against-the-f5-tmui-rce-vulnerability/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect attackers scanning for vulnerable jboss servers=== +This search looks for specific GET or HEAD requests to web servers that are indicative of reconnaissance attempts to identify vulnerable JBoss servers. JexBoss is described as the exploit tool of choice for this malicious activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1082/ T1082] +* '''Last Updated''': 2017-09-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Web where (Web.http_method="GET" OR Web.http_method="HEAD") AND (Web.url="*/web-console/ServerInfo.jsp*" OR Web.url="*web-console*" OR Web.url="*jmx-console*" OR Web.url = "*invoker*") by Web.http_method, Web.url, Web.src, Web.dest +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| `detect_attackers_scanning_for_vulnerable_jboss_servers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#JBoss_Vulnerability|JBoss Vulnerability]] + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +You must be ingesting data from the web server or network traffic that contains web specific information, and populating the Web data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1082 +| System Information Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Known False Positives==== +It's possible for legitimate HTTP requests to be made to URLs containing the suspicious paths. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Detect malicious requests to exploit jboss servers=== +This search is used to detect malicious HTTP requests crafted to exploit jmx-console in JBoss servers. The malicious requests have a long URL length, as the payload is embedded in the URL. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': +* '''Last Updated''': 2017-09-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Web where (Web.http_method="GET" OR Web.http_method="HEAD") by Web.http_method, Web.url,Web.url_length Web.src, Web.dest +| search Web.url="*jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.admin*import*" AND Web.url_length > 200 +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `security_content_ctime(lastTime)` +| table src, dest_ip, http_method, url, firstTime, lastTime +| `detect_malicious_requests_to_exploit_jboss_servers_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#JBoss_Vulnerability|JBoss Vulnerability]] + +* [[Documentation:ESSOC:stories:UseCase#SamSam_Ransomware|SamSam Ransomware]] + + +====How To Implement==== +You must ingest data from the web server or capture network data that contains web specific information with solutions such as Bro or Splunk Stream, and populating the Web data model + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +No known false positives for this detection. + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Monitor web traffic for brand abuse=== +This search looks for Web requests to faux domains similar to the one that you want to have monitored for abuse. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': +* '''Last Updated''': 2017-09-23 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` values(Web.url) as urls min(_time) as firstTime from datamodel=Web by Web.src +| `drop_dm_object_name("Web")` +| `security_content_ctime(firstTime)` +| `brand_abuse_web` +| `monitor_web_traffic_for_brand_abuse_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Brand_Monitoring|Brand Monitoring]] + + +====How To Implement==== +You need to ingest data from your web traffic. This can be accomplished by indexing data from a web proxy, or using a network traffic analysis tool, such as Bro or Splunk Stream. You also need to have run the search "ESCU - DNSTwist Domain Names", which creates the permutations of the domain that will be checked for. + +====Required field==== + + + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +None at this time + +====Reference==== + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Sql injection with long urls=== +This search looks for long URLs that have several SQL commands visible within them. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2020-07-21 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Web where Web.dest_category=web_server AND (Web.url_length > 1024 OR Web.http_user_agent_length > 200) by Web.src Web.dest Web.url Web.url_length Web.http_user_agent +| `drop_dm_object_name("Web")` +| eval num_sql_cmds=mvcount(split(url, "alter%20table")) + mvcount(split(url, "between")) + mvcount(split(url, "create%20table")) + mvcount(split(url, "create%20database")) + mvcount(split(url, "create%20index")) + mvcount(split(url, "create%20view")) + mvcount(split(url, "delete")) + mvcount(split(url, "drop%20database")) + mvcount(split(url, "drop%20index")) + mvcount(split(url, "drop%20table")) + mvcount(split(url, "exists")) + mvcount(split(url, "exec")) + mvcount(split(url, "group%20by")) + mvcount(split(url, "having")) + mvcount(split(url, "insert%20into")) + mvcount(split(url, "inner%20join")) + mvcount(split(url, "left%20join")) + mvcount(split(url, "right%20join")) + mvcount(split(url, "full%20join")) + mvcount(split(url, "select")) + mvcount(split(url, "distinct")) + mvcount(split(url, "select%20top")) + mvcount(split(url, "union")) + mvcount(split(url, "xp_cmdshell")) - 24 +| where num_sql_cmds > 3 +| `sql_injection_with_long_urls_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#SQL_Injection|SQL Injection]] + + +====How To Implement==== +To successfully implement this search, you need to be monitoring network communications to your web servers or ingesting your HTTP logs and populating the Web data model. You must also identify your web servers in the Enterprise Security assets table. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Known False Positives==== +It's possible that legitimate traffic will have long URLs or long user agent strings and that common SQL commands may be found within the URL. Please investigate as appropriate. + +====Reference==== + + +====Test Dataset==== + + +''version'': 2 +
+
+ +---- + +===Supernova webshell=== +This search aims to detect the Supernova webshell used in the SUNBURST attack. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1505.003/ T1505.003] +* '''Last Updated''': 2021-01-06 + +
+
+ +====Search==== + +| tstats `security_content_summariesonly` count from datamodel=Web.Web where web.url=*logoimagehandler.ashx*codes* OR Web.url=*logoimagehandler.ashx*clazz* OR Web.url=*logoimagehandler.ashx*method* OR Web.url=*logoimagehandler.ashx*args* by Web.src Web.dest Web.url Web.vendor_product Web.user Web.http_user_agent _time span=1s +| `supernova_webshell_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Sunburst_Malware|Sunburst Malware]] + + +====How To Implement==== +To successfully implement this search, you need to be monitoring web traffic to your Solarwinds Orion. The logs should be ingested into splunk and populating/mapped to the Web data model. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1505.003 +| Web Shell +| Persistence +|} + + +====Kill Chain Phase==== + +* Exfiltration + + +====Known False Positives==== +There might be false positives associted with this detection since items like args as a web argument is pretty generic. + +====Reference==== + +* https://www.splunk.com/en_us/blog/security/detecting-supernova-malware-solarwinds-continued.html + +* https://www.guidepointsecurity.com/supernova-solarwinds-net-webshell-analysis/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Web fraud - account harvesting=== +This search is used to identify the creation of multiple user accounts using the same email domain name. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136/ T1136] +* '''Last Updated''': 2018-10-08 + +
+
+ +====Search==== +`stream_http` http_content_type=text* uri="/magento2/customer/account/loginPost/" +| rex field=cookie "form_key=(?\w+)" +| rex field=form_data "login\[username\]=(?[^& +|^$]+)" +| search Username=* +| rex field=Username "@(?.*)" +| stats dc(Username) as UniqueUsernames list(Username) as src_user by email_domain +| where UniqueUsernames> 25 +| `web_fraud___account_harvesting_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Web_Fraud_Detection|Web Fraud Detection]] + + +====How To Implement==== +We start with a dataset that provides visibility into the email address used for the account creation. In this example, we are narrowing our search down to the single web page that hosts the Magento2 e-commerce platform (via URI) used for account creation, the single http content-type to grab only the user's clicks, and the http field that provides the username (form_data), for performance reasons. After we have the username and email domain, we look for numerous account creations per email domain. Common data sources used for this detection are customized Apache logs or Splunk Stream. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136 +| Create Account +| Persistence +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosely written detections that simply detect anamolous behavior. This search will need to be customized to fit your environment—improving its fidelity by counting based on something much more specific, such as a device ID that may be present in your dataset. Consideration for whether the large number of registrations are occuring from a first-time seen domain may also be important. Extending the search window to look further back in time, or even calculating the average per hour/day for each email domain to look for an anomalous spikes, will improve this search. You can also use Shannon entropy or Levenshtein Distance (both courtesy of URL Toolbox) to consider the randomness or similarity of the email name or email domain, as the names are often machine-generated. + +====Reference==== + +* https://splunkbase.splunk.com/app/2734/ + +* https://splunkbase.splunk.com/app/1809/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Web fraud - anomalous user clickspeed=== +This search is used to examine web sessions to identify those where the clicks are occurring too quickly for a human or are occurring with a near-perfect cadence (high periodicity or low standard deviation), resembling a script driven session. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2018-10-08 + +
+
+ +====Search==== +`stream_http` http_content_type=text* +| rex field=cookie "form_key=(?\w+)" +| streamstats window=2 current=1 range(_time) as TimeDelta by session_id +| where TimeDelta>0 +|stats count stdev(TimeDelta) as ClickSpeedStdDev avg(TimeDelta) as ClickSpeedAvg by session_id +| where count>5 AND (ClickSpeedStdDev<.5 OR ClickSpeedAvg<.5) +| `web_fraud___anomalous_user_clickspeed_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Web_Fraud_Detection|Web Fraud Detection]] + + +====How To Implement==== +Start with a dataset that allows you to see clickstream data for each user click on the website. That data must have a time stamp and must contain a reference to the session identifier being used by the website. This ties the clicks together into clickstreams. This value is usually found in the http cookie. With a bit of tuning, a version of this search could be used in high-volume scenarios, such as scraping, crawling, application DDOS, credit-card testing, account takeover, etc. Common data sources used for this detection are customized Apache logs, customized IIS, and Splunk Stream. + +====Required field==== + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Known False Positives==== +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosly written detections that simply detect anamoluous behavior. + +====Reference==== + +* https://en.wikipedia.org/wiki/Session_ID + +* https://en.wikipedia.org/wiki/Session_(computer_science) + +* https://en.wikipedia.org/wiki/HTTP_cookie + +* https://splunkbase.splunk.com/app/1809/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + +===Web fraud - password sharing across accounts=== +This search is used to identify user accounts that share a common password. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-10-08 + +
+
+ +====Search==== +`stream_http` http_content_type=text* uri=/magento2/customer/account/loginPost* +| rex field=form_data "login\[username\]=(?[^& +|^$]+)" +| rex field=form_data "login\[password\]=(?[^& +|^$]+)" +| stats dc(Username) as UniqueUsernames values(Username) as user list(src_ip) as src_ip by Password +|where UniqueUsernames>5 +| `web_fraud___password_sharing_across_accounts_filter` + +====Associated Analytic Story==== + +* [[Documentation:ESSOC:stories:UseCase#Web_Fraud_Detection|Web Fraud Detection]] + + +====How To Implement==== +We need to start with a dataset that allows us to see the values of usernames and passwords that users are submitting to the website hosting the Magento2 e-commerce platform (commonly found in the HTTP form_data field). A tokenized or hashed value of a password is acceptable and certainly preferable to a clear-text password. Common data sources used for this detection are customized Apache logs, customized IIS, and Splunk Stream. + +====Required field==== + + + + +====Kill Chain Phase==== + + +====Known False Positives==== +As is common with many fraud-related searches, we are usually looking to attribute risk or synthesize relevant context with loosely written detections that simply detect anamoluous behavior. + +====Reference==== + +* https://en.wikipedia.org/wiki/Session_ID + +* https://en.wikipedia.org/wiki/Session_(computer_science) + +* https://en.wikipedia.org/wiki/HTTP_cookie + +* https://splunkbase.splunk.com/app/1809/ + + +====Test Dataset==== + + +''version'': 1 +
+
+ +---- + + + + +''#############'' +''# Automatically generated by doc_gen.py in https://github.com/splunk/security_content'' +''# On Date: UTC'' +''# Author: Splunk Security Research'' +''# Contact: research@splunk.com'' +''#############'' + +[[Category:V:ESSOC:drafts]] \ No newline at end of file diff --git a/docs/spec/README.md b/docs/spec/README.md index 7c4e1f7821..9f2e056264 100644 --- a/docs/spec/README.md +++ b/docs/spec/README.md @@ -40,6 +40,8 @@ ### Arrays +* [Untitled array in Baseline Schema](./baselines-properties-datamodel.md "datamodel used in the search") – `#/properties/datamodel#/properties/datamodel` + * [Untitled array in Detection Schema](./detections-properties-references.md "A list of references for this detection") – `#/properties/references#/properties/references` * [Untitled array in Macro Manifest](./macros-properties-arguments.md "A list of the arguments being passed to this macro") – `https://api.splunkresearch.com/schemas/macros.json#/properties/arguments` diff --git a/docs/spec/baselines-properties-author.md b/docs/spec/baselines-properties-author.md deleted file mode 100644 index 25b1c05002..0000000000 --- a/docs/spec/baselines-properties-author.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/author#/properties/author -``` - -Author of the baseline - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## author Type - -`string` - -## author Examples - -```yaml -Bahvin Patel, Splunk - -``` diff --git a/docs/spec/baselines-properties-date.md b/docs/spec/baselines-properties-date.md deleted file mode 100644 index f91effacdf..0000000000 --- a/docs/spec/baselines-properties-date.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/date#/properties/date -``` - -date of creation or modification, format yyyy-mm-dd - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## date Type - -`string` - -## date Examples - -```yaml -'2019-12-06' - -``` diff --git a/docs/spec/baselines-properties-description.md b/docs/spec/baselines-properties-description.md deleted file mode 100644 index e61031299b..0000000000 --- a/docs/spec/baselines-properties-description.md +++ /dev/null @@ -1,26 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/description#/properties/description -``` - -A detailed description of the baseline - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## description Type - -`string` - -## description Examples - -```yaml ->- - This search looks for CloudTrail events where an AWS instance is started and - creates a baseline of most recent time (latest) and the first time (earliest) - we've seen this region in our dataset grouped by the value awsRegion for the - last 30 days - -``` diff --git a/docs/spec/baselines-properties-how_to_implement.md b/docs/spec/baselines-properties-how_to_implement.md deleted file mode 100644 index 0bac7d7e11..0000000000 --- a/docs/spec/baselines-properties-how_to_implement.md +++ /dev/null @@ -1,24 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/how_to_implement#/properties/how_to_implement -``` - -information about how to implement. Only needed for non standard implementations. - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## how_to_implement Type - -`string` - -## how_to_implement Examples - -```yaml ->- - This search requires Sysmon Logs and a Sysmon configuration, which includes - EventCode 10 for lsass.exe. - -``` diff --git a/docs/spec/baselines-properties-id.md b/docs/spec/baselines-properties-id.md deleted file mode 100644 index 0ac191b7fb..0000000000 --- a/docs/spec/baselines-properties-id.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/id#/properties/id -``` - -UUID as unique identifier - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## id Type - -`string` - -## id Examples - -```yaml -fc0edc95-ff2b-48b0-9f6f-63da3789fd63 - -``` diff --git a/docs/spec/baselines-properties-name-of-baseline.md b/docs/spec/baselines-properties-name-of-baseline.md deleted file mode 100644 index 46e7b91cba..0000000000 --- a/docs/spec/baselines-properties-name-of-baseline.md +++ /dev/null @@ -1,22 +0,0 @@ -# Name of baseline Schema - -```txt -#/properties/name#/properties/name -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## name Type - -`string` ([Name of baseline](baselines-properties-name-of-baseline.md)) - -## name Examples - -```yaml -Previously Seen AWS Regions - -``` diff --git a/docs/spec/baselines-properties-search.md b/docs/spec/baselines-properties-search.md deleted file mode 100644 index dae22b4ca4..0000000000 --- a/docs/spec/baselines-properties-search.md +++ /dev/null @@ -1,24 +0,0 @@ -# Untitled string in Baseline Schema Schema - -```txt -#/properties/search#/properties/search -``` - -The Splunk search for the baseline - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## search Type - -`string` - -## search Examples - -```yaml ->- - cloudtrail StartInstances | stats earliest(_time) as earliest latest(_time) as - latest by awsRegion | outputlookup previously_seen_aws_regions.csv - -``` diff --git a/docs/spec/baselines-properties-tags-default.md b/docs/spec/baselines-properties-tags-default.md deleted file mode 100644 index 6338be86cf..0000000000 --- a/docs/spec/baselines-properties-tags-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Baseline Schema Schema - -```txt -#/properties/tags#/properties/tags/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/baselines-properties-tags.md b/docs/spec/baselines-properties-tags.md deleted file mode 100644 index 622015ce22..0000000000 --- a/docs/spec/baselines-properties-tags.md +++ /dev/null @@ -1,47 +0,0 @@ -# Untitled object in Baseline Schema Schema - -```txt -#/properties/tags#/properties/tags -``` - -An array of key value pairs for tagging - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## tags Type - -`object` ([Details](baselines-properties-tags.md)) - -## tags Constraints - -**minimum number of items**: the minimum number of items for this array is: `1` - -**unique items**: all items in this array must be unique. Duplicates are not allowed. - -## tags Default Value - -The default value is: - -```json -{} -``` - -## tags Examples - -```yaml -analytic_story: suspicious_aws_ec2_activities -custom_key: custom_value - -``` - -# tags Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :--- | :------- | :---------- | :--------- | -| Additional Properties | Any | Optional | can be null | | - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/baselines-properties-version.md b/docs/spec/baselines-properties-version.md deleted file mode 100644 index 2d241c5920..0000000000 --- a/docs/spec/baselines-properties-version.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled integer in Baseline Schema Schema - -```txt -#/properties/version#/properties/version -``` - -version of baseline, e.g. 1 or 2 ... - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [baselines.spec.json*](../../out/baselines.spec.json "open original schema") | - -## version Type - -`integer` - -## version Examples - -```yaml -1 - -``` diff --git a/docs/spec/baselines.md b/docs/spec/baselines.md index 4b120c367a..ca84a410ca 100644 --- a/docs/spec/baselines.md +++ b/docs/spec/baselines.md @@ -6,9 +6,9 @@ http://example.com/example.json schema for baselines -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [baselines.spec.json](../../out/baselines.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [baselines.spec.json](../../spec/baselines.spec.json "open original schema") | ## Baseline Schema Type @@ -26,6 +26,7 @@ schema for baselines | [name](#name) | `string` | Required | cannot be null | [Baseline Schema](baselines-properties-name-of-baseline.md "#/properties/name#/properties/name") | | [search](#search) | `string` | Required | cannot be null | [Baseline Schema](baselines-properties-search.md "#/properties/search#/properties/search") | | [tags](#tags) | `object` | Required | cannot be null | [Baseline Schema](baselines-properties-tags.md "#/properties/tags#/properties/tags") | +| [datamodel](#datamodel) | `array` | Optional | cannot be null | [Baseline Schema](baselines-properties-datamodel.md "#/properties/datamodel#/properties/datamodel") | | [version](#version) | `integer` | Required | cannot be null | [Baseline Schema](baselines-properties-version.md "#/properties/version#/properties/version") | | Additional Properties | Any | Optional | can be null | | @@ -252,6 +253,31 @@ custom_key: custom_value ``` +## datamodel + +datamodel used in the search + +`datamodel` + +* is optional + +* Type: `string[]` + +* cannot be null + +* defined in: [Baseline Schema](baselines-properties-datamodel.md "#/properties/datamodel#/properties/datamodel") + +### datamodel Type + +`string[]` + +### datamodel Examples + +```yaml +Endpoint + +``` + ## version version of baseline, e.g. 1 or 2 ... diff --git a/docs/spec/deployments-default.md b/docs/spec/deployments-default.md deleted file mode 100644 index 1a7b518209..0000000000 --- a/docs/spec/deployments-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -http://example.com/example.json#/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-alert_action-default.md b/docs/spec/deployments-properties-alert_action-default.md deleted file mode 100644 index 55e2308c13..0000000000 --- a/docs/spec/deployments-properties-alert_action-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -#/properties/alert_action#/properties/alert_action/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-alert_action-properties-email-default.md b/docs/spec/deployments-properties-alert_action-properties-email-default.md deleted file mode 100644 index c8b32006bb..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-email-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/email#/properties/alert_action/properties/email/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-alert_action-properties-email-properties-message.md b/docs/spec/deployments-properties-alert_action-properties-email-properties-message.md deleted file mode 100644 index e01fa30a39..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-email-properties-message.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/email/properties/message#/properties/alert_action/properties/email/properties/message -``` - -message of email - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## message Type - -`string` - -## message Examples - -```yaml -Splunk Alert $name$ triggered %fields% - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-email-properties-subject.md b/docs/spec/deployments-properties-alert_action-properties-email-properties-subject.md deleted file mode 100644 index e72fd29af3..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-email-properties-subject.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/email/properties/subject#/properties/alert_action/properties/email/properties/subject -``` - -Subject of email - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## subject Type - -`string` - -## subject Examples - -```yaml -Splunk Alert $name$ - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-email-properties-to.md b/docs/spec/deployments-properties-alert_action-properties-email-properties-to.md deleted file mode 100644 index 0bef21838f..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-email-properties-to.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/email/properties/to#/properties/alert_action/properties/email/properties/to -``` - -Recipient of email - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## to Type - -`string` - -## to Examples - -```yaml -test@test.com - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-email.md b/docs/spec/deployments-properties-alert_action-properties-email.md deleted file mode 100644 index 070e95ee64..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-email.md +++ /dev/null @@ -1,120 +0,0 @@ -# Untitled object in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/email#/properties/alert_action/properties/email -``` - -By enabling it, an email is sent with the results - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## email Type - -`object` ([Details](deployments-properties-alert_action-properties-email.md)) - -## email Default Value - -The default value is: - -```json -{} -``` - -## email Examples - -```yaml -message: Splunk Alert $name$ triggered %fields% -subject: Splunk Alert $name$ -to: test@test.com - -``` - -# email Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :------- | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [message](#message) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-email-properties-message.md "#/properties/alert_action/properties/email/properties/message#/properties/alert_action/properties/email/properties/message") | -| [subject](#subject) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-email-properties-subject.md "#/properties/alert_action/properties/email/properties/subject#/properties/alert_action/properties/email/properties/subject") | -| [to](#to) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-email-properties-to.md "#/properties/alert_action/properties/email/properties/to#/properties/alert_action/properties/email/properties/to") | -| Additional Properties | Any | Optional | can be null | | - -## message - -message of email - -`message` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-email-properties-message.md "#/properties/alert_action/properties/email/properties/message#/properties/alert_action/properties/email/properties/message") - -### message Type - -`string` - -### message Examples - -```yaml -Splunk Alert $name$ triggered %fields% - -``` - -## subject - -Subject of email - -`subject` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-email-properties-subject.md "#/properties/alert_action/properties/email/properties/subject#/properties/alert_action/properties/email/properties/subject") - -### subject Type - -`string` - -### subject Examples - -```yaml -Splunk Alert $name$ - -``` - -## to - -Recipient of email - -`to` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-email-properties-to.md "#/properties/alert_action/properties/email/properties/to#/properties/alert_action/properties/email/properties/to") - -### to Type - -`string` - -### to Examples - -```yaml -test@test.com - -``` - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/deployments-properties-alert_action-properties-index-default.md b/docs/spec/deployments-properties-alert_action-properties-index-default.md deleted file mode 100644 index 0acb5762ae..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-index-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/index#/properties/alert_action/properties/index/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-alert_action-properties-index-properties-name.md b/docs/spec/deployments-properties-alert_action-properties-index-properties-name.md deleted file mode 100644 index be9a681a97..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-index-properties-name.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/index/properties/name#/properties/alert_action/properties/index/properties/name -``` - -Name of the index - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## name Type - -`string` - -## name Examples - -```yaml -asx - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-index.md b/docs/spec/deployments-properties-alert_action-properties-index.md deleted file mode 100644 index edc5070f0e..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-index.md +++ /dev/null @@ -1,66 +0,0 @@ -# Untitled object in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/index#/properties/alert_action/properties/index -``` - -By enabling it, the results are stored in another index - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## index Type - -`object` ([Details](deployments-properties-alert_action-properties-index.md)) - -## index Default Value - -The default value is: - -```json -{} -``` - -## index Examples - -```yaml -name: asx - -``` - -# index Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [name](#name) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-index-properties-name.md "#/properties/alert_action/properties/index/properties/name#/properties/alert_action/properties/index/properties/name") | -| Additional Properties | Any | Optional | can be null | | - -## name - -Name of the index - -`name` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-index-properties-name.md "#/properties/alert_action/properties/index/properties/name#/properties/alert_action/properties/index/properties/name") - -### name Type - -`string` - -### name Examples - -```yaml -asx - -``` - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/deployments-properties-alert_action-properties-notable-default.md b/docs/spec/deployments-properties-alert_action-properties-notable-default.md deleted file mode 100644 index 84226f6fc7..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-notable-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/notable#/properties/alert_action/properties/notable/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_description.md b/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_description.md deleted file mode 100644 index 23882cd515..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_description.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/notable/properties/rule_description#/properties/alert_action/properties/notable/properties/rule_description -``` - -Rule description of the notable event - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## rule_description Type - -`string` - -## rule_description Examples - -```yaml -'%description%' - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_title.md b/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_title.md deleted file mode 100644 index 9d5eb151c2..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-notable-properties-rule_title.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/notable/properties/rule_title#/properties/alert_action/properties/notable/properties/rule_title -``` - -Rule title of the notable event - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## rule_title Type - -`string` - -## rule_title Examples - -```yaml -'%name%' - -``` diff --git a/docs/spec/deployments-properties-alert_action-properties-notable.md b/docs/spec/deployments-properties-alert_action-properties-notable.md deleted file mode 100644 index d117f24ef9..0000000000 --- a/docs/spec/deployments-properties-alert_action-properties-notable.md +++ /dev/null @@ -1,93 +0,0 @@ -# Untitled object in Deployment Schema Schema - -```txt -#/properties/alert_action/properties/notable#/properties/alert_action/properties/notable -``` - -By enabling it, a notable is generated - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## notable Type - -`object` ([Details](deployments-properties-alert_action-properties-notable.md)) - -## notable Default Value - -The default value is: - -```json -{} -``` - -## notable Examples - -```yaml -rule_description: '%description%' -rule_title: '%name%' - -``` - -# notable Properties - -| Property | Type | Required | Nullable | Defined by | -| :------------------------------------ | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [rule_description](#rule_description) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-notable-properties-rule_description.md "#/properties/alert_action/properties/notable/properties/rule_description#/properties/alert_action/properties/notable/properties/rule_description") | -| [rule_title](#rule_title) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-notable-properties-rule_title.md "#/properties/alert_action/properties/notable/properties/rule_title#/properties/alert_action/properties/notable/properties/rule_title") | -| Additional Properties | Any | Optional | can be null | | - -## rule_description - -Rule description of the notable event - -`rule_description` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-notable-properties-rule_description.md "#/properties/alert_action/properties/notable/properties/rule_description#/properties/alert_action/properties/notable/properties/rule_description") - -### rule_description Type - -`string` - -### rule_description Examples - -```yaml -'%description%' - -``` - -## rule_title - -Rule title of the notable event - -`rule_title` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-notable-properties-rule_title.md "#/properties/alert_action/properties/notable/properties/rule_title#/properties/alert_action/properties/notable/properties/rule_title") - -### rule_title Type - -`string` - -### rule_title Examples - -```yaml -'%name%' - -``` - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/deployments-properties-alert_action.md b/docs/spec/deployments-properties-alert_action.md deleted file mode 100644 index f5fa09670a..0000000000 --- a/docs/spec/deployments-properties-alert_action.md +++ /dev/null @@ -1,153 +0,0 @@ -# Untitled object in Deployment Schema Schema - -```txt -#/properties/alert_action#/properties/alert_action -``` - -Set alert action parameter for search - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## alert_action Type - -`object` ([Details](deployments-properties-alert_action.md)) - -## alert_action Default Value - -The default value is: - -```json -{} -``` - -## alert_action Examples - -```yaml -email: - message: Splunk Alert $name$ triggered %fields% - subject: Splunk Alert $name$ - to: test@test.com -index: - name: asx -notable: - rule_description: '%description%' - rule_title: '%name%' - -``` - -# alert_action Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [email](#email) | `object` | Optional | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-email.md "#/properties/alert_action/properties/email#/properties/alert_action/properties/email") | -| [index](#index) | `object` | Optional | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-index.md "#/properties/alert_action/properties/index#/properties/alert_action/properties/index") | -| [notable](#notable) | `object` | Optional | cannot be null | [Deployment Schema](deployments-properties-alert_action-properties-notable.md "#/properties/alert_action/properties/notable#/properties/alert_action/properties/notable") | -| Additional Properties | Any | Optional | can be null | | - -## email - -By enabling it, an email is sent with the results - -`email` - -* is optional - -* Type: `object` ([Details](deployments-properties-alert_action-properties-email.md)) - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-email.md "#/properties/alert_action/properties/email#/properties/alert_action/properties/email") - -### email Type - -`object` ([Details](deployments-properties-alert_action-properties-email.md)) - -### email Default Value - -The default value is: - -```json -{} -``` - -### email Examples - -```yaml -message: Splunk Alert $name$ triggered %fields% -subject: Splunk Alert $name$ -to: test@test.com - -``` - -## index - -By enabling it, the results are stored in another index - -`index` - -* is optional - -* Type: `object` ([Details](deployments-properties-alert_action-properties-index.md)) - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-index.md "#/properties/alert_action/properties/index#/properties/alert_action/properties/index") - -### index Type - -`object` ([Details](deployments-properties-alert_action-properties-index.md)) - -### index Default Value - -The default value is: - -```json -{} -``` - -### index Examples - -```yaml -name: asx - -``` - -## notable - -By enabling it, a notable is generated - -`notable` - -* is optional - -* Type: `object` ([Details](deployments-properties-alert_action-properties-notable.md)) - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-alert_action-properties-notable.md "#/properties/alert_action/properties/notable#/properties/alert_action/properties/notable") - -### notable Type - -`object` ([Details](deployments-properties-alert_action-properties-notable.md)) - -### notable Default Value - -The default value is: - -```json -{} -``` - -### notable Examples - -```yaml -rule_description: '%description%' -rule_title: '%name%' - -``` - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/deployments-properties-scheduling-default.md b/docs/spec/deployments-properties-scheduling-default.md deleted file mode 100644 index f39294b0a3..0000000000 --- a/docs/spec/deployments-properties-scheduling-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Deployment Schema Schema - -```txt -#/properties/scheduling#/properties/scheduling/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/deployments-properties-scheduling-properties-cron_schedule.md b/docs/spec/deployments-properties-scheduling-properties-cron_schedule.md deleted file mode 100644 index 52cbbfae51..0000000000 --- a/docs/spec/deployments-properties-scheduling-properties-cron_schedule.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/scheduling/properties/cron_schedule#/properties/scheduling/properties/cron_schedule -``` - -Cron schedule to schedule the Splunk searches. - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## cron_schedule Type - -`string` - -## cron_schedule Examples - -```yaml -'*/10 * * * *' - -``` diff --git a/docs/spec/deployments-properties-scheduling-properties-earliest_time.md b/docs/spec/deployments-properties-scheduling-properties-earliest_time.md deleted file mode 100644 index 5808ddd97f..0000000000 --- a/docs/spec/deployments-properties-scheduling-properties-earliest_time.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/scheduling/properties/earliest_time#/properties/scheduling/properties/earliest_time -``` - -earliest time of search - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## earliest_time Type - -`string` - -## earliest_time Examples - -```yaml -'-10m' - -``` diff --git a/docs/spec/deployments-properties-scheduling-properties-latest_time.md b/docs/spec/deployments-properties-scheduling-properties-latest_time.md deleted file mode 100644 index 566141825e..0000000000 --- a/docs/spec/deployments-properties-scheduling-properties-latest_time.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/scheduling/properties/latest_time#/properties/scheduling/properties/latest_time -``` - -latest time of search - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## latest_time Type - -`string` - -## latest_time Examples - -```yaml -now - -``` diff --git a/docs/spec/deployments-properties-scheduling-properties-schedule_window.md b/docs/spec/deployments-properties-scheduling-properties-schedule_window.md deleted file mode 100644 index 41aad873d4..0000000000 --- a/docs/spec/deployments-properties-scheduling-properties-schedule_window.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Deployment Schema Schema - -```txt -#/properties/scheduling/properties/schedule_window#/properties/scheduling/properties/schedule_window -``` - -schedule window for search - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## schedule_window Type - -`string` - -## schedule_window Examples - -```yaml -auto - -``` diff --git a/docs/spec/deployments-properties-scheduling.md b/docs/spec/deployments-properties-scheduling.md deleted file mode 100644 index cf64fb3727..0000000000 --- a/docs/spec/deployments-properties-scheduling.md +++ /dev/null @@ -1,147 +0,0 @@ -# Untitled object in Deployment Schema Schema - -```txt -#/properties/scheduling#/properties/scheduling -``` - -allows to set scheduling parameter - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json*](../../out/deployments.spec.json "open original schema") | - -## scheduling Type - -`object` ([Details](deployments-properties-scheduling.md)) - -## scheduling Default Value - -The default value is: - -```json -{} -``` - -## scheduling Examples - -```yaml -cron_schedule: '*/10 * * * *' -earliest_time: '-10m' -latest_time: now -schedule_window: auto - -``` - -# scheduling Properties - -| Property | Type | Required | Nullable | Defined by | -| :---------------------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [cron_schedule](#cron_schedule) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-scheduling-properties-cron_schedule.md "#/properties/scheduling/properties/cron_schedule#/properties/scheduling/properties/cron_schedule") | -| [earliest_time](#earliest_time) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-scheduling-properties-earliest_time.md "#/properties/scheduling/properties/earliest_time#/properties/scheduling/properties/earliest_time") | -| [latest_time](#latest_time) | `string` | Required | cannot be null | [Deployment Schema](deployments-properties-scheduling-properties-latest_time.md "#/properties/scheduling/properties/latest_time#/properties/scheduling/properties/latest_time") | -| [schedule_window](#schedule_window) | `string` | Optional | cannot be null | [Deployment Schema](deployments-properties-scheduling-properties-schedule_window.md "#/properties/scheduling/properties/schedule_window#/properties/scheduling/properties/schedule_window") | -| Additional Properties | Any | Optional | can be null | | - -## cron_schedule - -Cron schedule to schedule the Splunk searches. - -`cron_schedule` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-scheduling-properties-cron_schedule.md "#/properties/scheduling/properties/cron_schedule#/properties/scheduling/properties/cron_schedule") - -### cron_schedule Type - -`string` - -### cron_schedule Examples - -```yaml -'*/10 * * * *' - -``` - -## earliest_time - -earliest time of search - -`earliest_time` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-scheduling-properties-earliest_time.md "#/properties/scheduling/properties/earliest_time#/properties/scheduling/properties/earliest_time") - -### earliest_time Type - -`string` - -### earliest_time Examples - -```yaml -'-10m' - -``` - -## latest_time - -latest time of search - -`latest_time` - -* is required - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-scheduling-properties-latest_time.md "#/properties/scheduling/properties/latest_time#/properties/scheduling/properties/latest_time") - -### latest_time Type - -`string` - -### latest_time Examples - -```yaml -now - -``` - -## schedule_window - -schedule window for search - -`schedule_window` - -* is optional - -* Type: `string` - -* cannot be null - -* defined in: [Deployment Schema](deployments-properties-scheduling-properties-schedule_window.md "#/properties/scheduling/properties/schedule_window#/properties/scheduling/properties/schedule_window") - -### schedule_window Type - -`string` - -### schedule_window Examples - -```yaml -auto - -``` - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/deployments.md b/docs/spec/deployments.md index 4d1597e99c..d77cb1e62f 100644 --- a/docs/spec/deployments.md +++ b/docs/spec/deployments.md @@ -6,9 +6,9 @@ http://example.com/example.json schema for deployment -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json](../../out/deployments.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [deployments.spec.json](../../spec/deployments.spec.json "open original schema") | ## Deployment Schema Type diff --git a/docs/spec/detections-properties-known_false_positives.md b/docs/spec/detections-properties-known_false_positives.md deleted file mode 100644 index ae7c1bafbd..0000000000 --- a/docs/spec/detections-properties-known_false_positives.md +++ /dev/null @@ -1,24 +0,0 @@ -# Untitled string in Detection Schema Schema - -```txt -#/properties/knwon_false_positives#/properties/known_false_positives -``` - -known false postives - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [detections.spec.json*](../../out/detections.spec.json "open original schema") | - -## known_false_positives Type - -`string` - -## known_false_positives Examples - -```yaml ->- - Administrators can create memory dumps for debugging purposes, but memory - dumps of the LSASS process would be unusual. - -``` diff --git a/docs/spec/detections-properties-references-the-items-schema.md b/docs/spec/detections-properties-references-the-items-schema.md deleted file mode 100644 index c184428f27..0000000000 --- a/docs/spec/detections-properties-references-the-items-schema.md +++ /dev/null @@ -1,23 +0,0 @@ -# The Items Schema Schema - -```txt -#/properties/references/items#/properties/references/items -``` - -An explanation about the purpose of this instance. - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [detections.spec.json*](../../out/detections.spec.json "open original schema") | - -## items Type - -`string` ([The Items Schema](detections-properties-references-the-items-schema.md)) - -## items Examples - -```yaml ->- - https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf - -``` diff --git a/docs/spec/detections-properties-references.md b/docs/spec/detections-properties-references.md deleted file mode 100644 index 07618fc3f0..0000000000 --- a/docs/spec/detections-properties-references.md +++ /dev/null @@ -1,31 +0,0 @@ -# Untitled array in Detection Schema Schema - -```txt -#/properties/references#/properties/references -``` - -A list of references for this detection - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [detections.spec.json*](../../out/detections.spec.json "open original schema") | - -## references Type - -`string[]` ([The Items Schema](detections-properties-references-the-items-schema.md)) - -## references Default Value - -The default value is: - -```json -[] -``` - -## references Examples - -```yaml -- >- - https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf - -``` diff --git a/docs/spec/detections-properties-type-items.md b/docs/spec/detections-properties-type-items.md deleted file mode 100644 index 226980c0e6..0000000000 --- a/docs/spec/detections-properties-type-items.md +++ /dev/null @@ -1,24 +0,0 @@ -# Untitled string in Detection Schema Schema - -```txt -#/properties/type#/properties/type/items -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [detections.spec.json*](../../out/detections.spec.json "open original schema") | - -## items Type - -`string` - -## items Constraints - -**enum**: the value of this property must be equal to one of the following values: - -| Value | Explanation | -| :------------ | :---------- | -| `"batch"` | | -| `"streaming"` | | diff --git a/docs/spec/detections-properties-type.md b/docs/spec/detections-properties-type.md deleted file mode 100644 index 98c36f20ac..0000000000 --- a/docs/spec/detections-properties-type.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Detection Schema Schema - -```txt -#/properties/type#/properties/type -``` - -type of detection - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [detections.spec.json*](../../out/detections.spec.json "open original schema") | - -## type Type - -`string` - -## type Examples - -```yaml -streaming - -``` diff --git a/docs/spec/detections.md b/docs/spec/detections.md index a07f254a09..e37aa83875 100644 --- a/docs/spec/detections.md +++ b/docs/spec/detections.md @@ -6,9 +6,9 @@ http://example.com/example.json schema for detections -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [detections.spec.json](../../out/detections.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [detections.spec.json](../../spec/detections.spec.json "open original schema") | ## Detection Schema Type @@ -29,6 +29,7 @@ schema for detections | [search](#search) | `string` | Required | cannot be null | [Detection Schema](detections-properties-search.md "#/properties/search#/properties/search") | | [tags](#tags) | `object` | Required | cannot be null | [Detection Schema](detections-properties-tags.md "#/properties/tags#/properties/tags") | | [type](#type) | `string` | Required | cannot be null | [Detection Schema](detections-properties-type.md "#/properties/type#/properties/type") | +| [datamodel](#datamodel) | `array` | Optional | cannot be null | [Detection Schema](detections-properties-datamodel.md "#/properties/datamodel#/properties/datamodel") | | [version](#version) | `integer` | Required | cannot be null | [Detection Schema](detections-properties-version.md "#/properties/version#/properties/version") | | Additional Properties | Any | Optional | can be null | | @@ -354,6 +355,31 @@ streaming ``` +## datamodel + +datamodel used in the search + +`datamodel` + +* is optional + +* Type: `string[]` + +* cannot be null + +* defined in: [Detection Schema](detections-properties-datamodel.md "#/properties/datamodel#/properties/datamodel") + +### datamodel Type + +`string[]` + +### datamodel Examples + +```yaml +Endpoint + +``` + ## version version of detection, e.g. 1 or 2 ... diff --git a/docs/spec/lookups-oneof-0.md b/docs/spec/lookups-oneof-0.md deleted file mode 100644 index 78403ade45..0000000000 --- a/docs/spec/lookups-oneof-0.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/oneOf/0 -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## 0 Type - -unknown diff --git a/docs/spec/lookups-oneof-1.md b/docs/spec/lookups-oneof-1.md deleted file mode 100644 index 4b493c4f17..0000000000 --- a/docs/spec/lookups-oneof-1.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/oneOf/1 -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## 1 Type - -unknown diff --git a/docs/spec/lookups-properties-case_sensitive_match.md b/docs/spec/lookups-properties-case_sensitive_match.md deleted file mode 100644 index b067278e67..0000000000 --- a/docs/spec/lookups-properties-case_sensitive_match.md +++ /dev/null @@ -1,31 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/case_sensitive_match -``` - -What the macro is intended to filter - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## case_sensitive_match Type - -`string` - -## case_sensitive_match Constraints - -**enum**: the value of this property must be equal to one of the following values: - -| Value | Explanation | -| :-------- | :---------- | -| `"true"` | | -| `"false"` | | - -## case_sensitive_match Examples - -```yaml -'true' - -``` diff --git a/docs/spec/lookups-properties-collection.md b/docs/spec/lookups-properties-collection.md deleted file mode 100644 index 62b7028b4d..0000000000 --- a/docs/spec/lookups-properties-collection.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/collection -``` - -Name of the collection to use for this lookup - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## collection Type - -`string` - -## collection Examples - -```yaml -prohibited_apps_launching_cmd - -``` diff --git a/docs/spec/lookups-properties-default_match.md b/docs/spec/lookups-properties-default_match.md deleted file mode 100644 index 46369bbdda..0000000000 --- a/docs/spec/lookups-properties-default_match.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/default_match -``` - -The default value if no match is found - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## default_match Type - -`string` - -## default_match Examples - -```yaml -'true' - -``` diff --git a/docs/spec/lookups-properties-description.md b/docs/spec/lookups-properties-description.md deleted file mode 100644 index e9fc0cfe11..0000000000 --- a/docs/spec/lookups-properties-description.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/description -``` - -The description of this lookup - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## description Type - -`string` - -## description Examples - -```yaml -This lookup contains file names that exist in the Windows\System32 directory - -``` diff --git a/docs/spec/lookups-properties-fields_list.md b/docs/spec/lookups-properties-fields_list.md deleted file mode 100644 index e0a699ee17..0000000000 --- a/docs/spec/lookups-properties-fields_list.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/fields_list -``` - -A comma and space separated list of field names - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## fields_list Type - -`string` - -## fields_list Examples - -```yaml -_key, dest, process_name - -``` diff --git a/docs/spec/lookups-properties-filename.md b/docs/spec/lookups-properties-filename.md deleted file mode 100644 index 80584c0215..0000000000 --- a/docs/spec/lookups-properties-filename.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/filename -``` - -The name of the file to use for this lookup - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## filename Type - -`string` - -## filename Examples - -```yaml -prohibited_apps_launching_cmd.csv - -``` diff --git a/docs/spec/lookups-properties-filter.md b/docs/spec/lookups-properties-filter.md deleted file mode 100644 index ad1a68ff22..0000000000 --- a/docs/spec/lookups-properties-filter.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/filter -``` - -Use this attribute to improve search performance when working with significantly large KV - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## filter Type - -`string` - -## filter Examples - -```yaml -dest="SPLK_*" - -``` diff --git a/docs/spec/lookups-properties-match_type.md b/docs/spec/lookups-properties-match_type.md deleted file mode 100644 index 3ca467f6a8..0000000000 --- a/docs/spec/lookups-properties-match_type.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/match_type -``` - -A comma and space-delimited list of \(\) specification to allow for non-exact matching - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## match_type Type - -`string` - -## match_type Examples - -```yaml -WILDCARD(process) - -``` diff --git a/docs/spec/lookups-properties-max_matches.md b/docs/spec/lookups-properties-max_matches.md deleted file mode 100644 index 652395498b..0000000000 --- a/docs/spec/lookups-properties-max_matches.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled integer in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/max_matches -``` - -The maximum number of possible matches for each input lookup value - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## max_matches Type - -`integer` - -## max_matches Examples - -```yaml -'100' - -``` diff --git a/docs/spec/lookups-properties-min_matches.md b/docs/spec/lookups-properties-min_matches.md deleted file mode 100644 index e950b97fbd..0000000000 --- a/docs/spec/lookups-properties-min_matches.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled integer in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/min_matches -``` - -Minimum number of possible matches for each input lookup value - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## min_matches Type - -`integer` - -## min_matches Examples - -```yaml -'1' - -``` diff --git a/docs/spec/lookups-properties-name.md b/docs/spec/lookups-properties-name.md deleted file mode 100644 index ca27b5144c..0000000000 --- a/docs/spec/lookups-properties-name.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Lookup Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/lookups.json#/properties/name -``` - -The name of the lookup to be used in searches - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [lookups.spec.json*](../../out/lookups.spec.json "open original schema") | - -## name Type - -`string` - -## name Examples - -```yaml -isWindowsSystemFile_lookup - -``` diff --git a/docs/spec/lookups.md b/docs/spec/lookups.md index 79b6e284e3..d6a8ec5141 100644 --- a/docs/spec/lookups.md +++ b/docs/spec/lookups.md @@ -6,9 +6,9 @@ https://api.splunkresearch.com/schemas/lookups.json A object that defines a lookup file and its properties. -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [lookups.spec.json](../../out/lookups.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [lookups.spec.json](../../spec/lookups.spec.json "open original schema") | ## Lookup Manifest Type diff --git a/docs/spec/macros-properties-arguments-items.md b/docs/spec/macros-properties-arguments-items.md deleted file mode 100644 index 34f73377e8..0000000000 --- a/docs/spec/macros-properties-arguments-items.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled string in Macro Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/macros.json#/properties/arguments/items -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [macros.spec.json*](../../out/macros.spec.json "open original schema") | - -## items Type - -`string` diff --git a/docs/spec/macros-properties-arguments.md b/docs/spec/macros-properties-arguments.md deleted file mode 100644 index 1334acd3c1..0000000000 --- a/docs/spec/macros-properties-arguments.md +++ /dev/null @@ -1,21 +0,0 @@ -# Untitled array in Macro Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/macros.json#/properties/arguments -``` - -A list of the arguments being passed to this macro - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [macros.spec.json*](../../out/macros.spec.json "open original schema") | - -## arguments Type - -`string[]` - -## arguments Constraints - -**minimum number of items**: the minimum number of items for this array is: `0` - -**unique items**: all items in this array must be unique. Duplicates are not allowed. diff --git a/docs/spec/macros-properties-definition.md b/docs/spec/macros-properties-definition.md deleted file mode 100644 index 128ea17364..0000000000 --- a/docs/spec/macros-properties-definition.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Macro Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/macros.json#/properties/definition -``` - -The macro definition - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [macros.spec.json*](../../out/macros.spec.json "open original schema") | - -## definition Type - -`string` - -## definition Examples - -```yaml -(query=fls-na* AND query = www* AND query=images*) - -``` diff --git a/docs/spec/macros-properties-description.md b/docs/spec/macros-properties-description.md deleted file mode 100644 index e5f8aed632..0000000000 --- a/docs/spec/macros-properties-description.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Macro Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/macros.json#/properties/description -``` - -What the macro is intended to filter - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [macros.spec.json*](../../out/macros.spec.json "open original schema") | - -## description Type - -`string` - -## description Examples - -```yaml -Use this macro to filter out known good objects - -``` diff --git a/docs/spec/macros-properties-name.md b/docs/spec/macros-properties-name.md deleted file mode 100644 index 484c1e4e3f..0000000000 --- a/docs/spec/macros-properties-name.md +++ /dev/null @@ -1,22 +0,0 @@ -# Untitled string in Macro Manifest Schema - -```txt -https://api.splunkresearch.com/schemas/macros.json#/properties/name -``` - -The name of the macro - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [macros.spec.json*](../../out/macros.spec.json "open original schema") | - -## name Type - -`string` - -## name Examples - -```yaml -detection_search_output_filter - -``` diff --git a/docs/spec/macros.md b/docs/spec/macros.md index c3cb8dc57b..3047f816f2 100644 --- a/docs/spec/macros.md +++ b/docs/spec/macros.md @@ -6,9 +6,9 @@ https://api.splunkresearch.com/schemas/macros.json An object that defines the parameters for a Splunk Macro -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [macros.spec.json](../../out/macros.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [macros.spec.json](../../spec/macros.spec.json "open original schema") | ## Macro Manifest Type diff --git a/docs/spec/response_tasks-default.md b/docs/spec/response_tasks-default.md deleted file mode 100644 index 31296217d9..0000000000 --- a/docs/spec/response_tasks-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -https://raw.githubusercontent.com/splunk/security_content/develop/docs/spec/response_tasks.spec.json#/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [response_tasks.spec.json*](../../out/response_tasks.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/response_tasks-properties-automation-default.md b/docs/spec/response_tasks-properties-automation-default.md deleted file mode 100644 index b2cdd45428..0000000000 --- a/docs/spec/response_tasks-properties-automation-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -#/properties/automation#/properties/automation/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [response_tasks.spec.json*](../../out/response_tasks.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/response_tasks-properties-automation.md b/docs/spec/response_tasks-properties-automation.md deleted file mode 100644 index bdd1eb66d4..0000000000 --- a/docs/spec/response_tasks-properties-automation.md +++ /dev/null @@ -1,62 +0,0 @@ -# Untitled object in Response Schema Schema - -```txt -#/properties/automation#/properties/automation -``` - -An array of key value pairs for defining actions and playbooks - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [response_tasks.spec.json*](../../out/response_tasks.spec.json "open original schema") | - -## automation Type - -`object` ([Details](response_tasks-properties-automation.md)) - -## automation Constraints - -**minimum number of items**: the minimum number of items for this array is: `1` - -**unique items**: all items in this array must be unique. Duplicates are not allowed. - -## automation Default Value - -The default value is: - -```json -{ - "is_note_required": false, - "sla_type": "minutes", - "sla": "", - "role": "", - "action": [], - "playbooks": [] -} -``` - -## automation Examples - -```yaml -is_note_required: false -sla_type: minutes -sla: 30 -action: - - run_query -playbooks: - - scm: local - playbook: automate something - - scm: local - playbook: automate something else - -``` - -# automation Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :--- | :------- | :---------- | :--------- | -| Additional Properties | Any | Optional | can be null | | - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/response_tasks-properties-sla.md b/docs/spec/response_tasks-properties-sla.md deleted file mode 100644 index 9de4e3e98f..0000000000 --- a/docs/spec/response_tasks-properties-sla.md +++ /dev/null @@ -1,27 +0,0 @@ -# Untitled integer in Response Schema Schema - -```txt -#/properties/sla#/properties/sla -``` - -Measured integer for Service Level Agreement for completion of the phase - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [response_tasks.spec.json*](../../out/response_tasks.spec.json "open original schema") | - -## sla Type - -`integer` - -## sla Examples - -```yaml -5 - -``` - -```yaml -30 - -``` diff --git a/docs/spec/response_tasks-properties-sla_type.md b/docs/spec/response_tasks-properties-sla_type.md deleted file mode 100644 index 28319602eb..0000000000 --- a/docs/spec/response_tasks-properties-sla_type.md +++ /dev/null @@ -1,40 +0,0 @@ -# Untitled string in Response Schema Schema - -```txt -#/properties/sla_type#/properties/sla_type -``` - -Duration for measured integer for Service Level Agreement for completion of the phase (e.g. minutes, or hours, etc) - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [response_tasks.spec.json*](../../out/response_tasks.spec.json "open original schema") | - -## sla_type Type - -`string` - -## sla_type Default Value - -The default value is: - -```json -"minutes" -``` - -## sla_type Examples - -```yaml -minutes - -``` - -```yaml -hours - -``` - -```yaml -days - -``` diff --git a/docs/spec/response_tasks.md b/docs/spec/response_tasks.md index 6ee8b796ed..de3298f7e4 100644 --- a/docs/spec/response_tasks.md +++ b/docs/spec/response_tasks.md @@ -6,9 +6,9 @@ https://raw.githubusercontent.com/splunk/security_content/develop/docs/spec/resp schema for response task -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------ | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [response_tasks.spec.json](../../out/response_tasks.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [response_tasks.spec.json](../../spec/response_tasks.spec.json "open original schema") | ## Response Schema Type diff --git a/docs/spec/responses-default.md b/docs/spec/responses-default.md deleted file mode 100644 index 3478b338bd..0000000000 --- a/docs/spec/responses-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -https://raw.githubusercontent.com/splunk/security_content/develop/docs/spec/response.spec.json#/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses.spec.json*](../../out/responses.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/responses-properties-is_note_required.md b/docs/spec/responses-properties-is_note_required.md deleted file mode 100644 index 26aed247e2..0000000000 --- a/docs/spec/responses-properties-is_note_required.md +++ /dev/null @@ -1,27 +0,0 @@ -# Untitled boolean in Response Schema Schema - -```txt -#/properties/is_note_required#/properties/is_note_required -``` - -Global assignment for notes being required for tasks, can be individually set in the task - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses.spec.json*](../../out/responses.spec.json "open original schema") | - -## is_note_required Type - -`boolean` - -## is_note_required Examples - -```yaml -true - -``` - -```yaml -false - -``` diff --git a/docs/spec/responses-properties-response_phase-default.md b/docs/spec/responses-properties-response_phase-default.md deleted file mode 100644 index e773e97379..0000000000 --- a/docs/spec/responses-properties-response_phase-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -#/properties/response_phases#/properties/response_phase/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses.spec.json*](../../out/responses.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/responses-properties-response_phase.md b/docs/spec/responses-properties-response_phase.md deleted file mode 100644 index bdd06286c0..0000000000 --- a/docs/spec/responses-properties-response_phase.md +++ /dev/null @@ -1,51 +0,0 @@ -# Untitled array in Response Schema Schema - -```txt -#/properties/response_phases#/properties/response_phase -``` - -Response divided into phases. These will used to referenced known response_phase parameters - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses.spec.json*](../../out/responses.spec.json "open original schema") | - -## response_phase Type - -`array` - -## response_phase Constraints - -**minimum number of items**: the minimum number of items for this array is: `1` - -## response_phase Default Value - -The default value is: - -```json -{} -``` - -## response_phase Examples - -```yaml -preparation: - - id: 7c72d944-3995-4485-8e57-67b4c353989b - name: Preparation NIST -identification: - - id: c36f3f48-e0bb-4c20-a62a-cdc8f6418892 - name: Detection and Analysis - - id: 0dc849b2-2eb4-4fd2-add1-b6cc475765f0 - name: Analysis - -``` - -# response_phase Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :--- | :------- | :---------- | :--------- | -| Additional Properties | Any | Optional | can be null | | - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/responses.md b/docs/spec/responses.md index 314ad93450..59068b91a7 100644 --- a/docs/spec/responses.md +++ b/docs/spec/responses.md @@ -6,9 +6,9 @@ https://raw.githubusercontent.com/splunk/security_content/develop/docs/spec/resp schema for response -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [responses.spec.json](../../out/responses.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [responses.spec.json](../../spec/responses.spec.json "open original schema") | ## Response Schema Type diff --git a/docs/spec/responses_phase-default.md b/docs/spec/responses_phase-default.md deleted file mode 100644 index c1576f1e4e..0000000000 --- a/docs/spec/responses_phase-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -http://example.com/example.json#/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses_phase.spec.json*](../../out/responses_phase.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/responses_phase-properties-response_task-default.md b/docs/spec/responses_phase-properties-response_task-default.md deleted file mode 100644 index 9ede2dfaf9..0000000000 --- a/docs/spec/responses_phase-properties-response_task-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Response Schema Schema - -```txt -#/properties/response_task#/properties/response_task/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses_phase.spec.json*](../../out/responses_phase.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/responses_phase-properties-response_task.md b/docs/spec/responses_phase-properties-response_task.md deleted file mode 100644 index 780e4b3d5b..0000000000 --- a/docs/spec/responses_phase-properties-response_task.md +++ /dev/null @@ -1,57 +0,0 @@ -# Untitled array in Response Schema Schema - -```txt -#/properties/response_task#/properties/response_task -``` - -Response phase is divided into task(s) to be completed. These will used to referenced known response_task parameters. Order is as positioned and with unique name. - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [responses_phase.spec.json*](../../out/responses_phase.spec.json "open original schema") | - -## response_task Type - -`array` - -## response_task Constraints - -**minimum number of items**: the minimum number of items for this array is: `1` - -## response_task Default Value - -The default value is: - -```json -{} -``` - -## response_task Examples - -```yaml -id: 7c72d944-3995-4485-8e57-67b4c353989b -name: Prepare for Incident Handling - -``` - -```yaml -id: c36f3f48-e0bb-4c20-a62a-cdc8f6418892 -name: Preventing Incidents - -``` - -```yaml -id: 0dc849b2-2eb4-4fd2-add1-b6cc475765f0 -name: Practice - -``` - -# response_task Properties - -| Property | Type | Required | Nullable | Defined by | -| :-------------------- | :--- | :------- | :---------- | :--------- | -| Additional Properties | Any | Optional | can be null | | - -## Additional Properties - -Additional properties are allowed and do not have to follow a specific schema diff --git a/docs/spec/responses_phase.md b/docs/spec/responses_phase.md index 09d1b3be2a..0d98bfc963 100644 --- a/docs/spec/responses_phase.md +++ b/docs/spec/responses_phase.md @@ -6,9 +6,9 @@ http://example.com/example.json schema for phase -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [responses_phase.spec.json](../../out/responses_phase.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [responses_phase.spec.json](../../spec/responses_phase.spec.json "open original schema") | ## Response Schema Type diff --git a/docs/spec/stories-default.md b/docs/spec/stories-default.md deleted file mode 100644 index 9abc854a40..0000000000 --- a/docs/spec/stories-default.md +++ /dev/null @@ -1,15 +0,0 @@ -# Untitled undefined type in Analytics Story Schema Schema - -```txt -http://example.com/example.json#/default -``` - - - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [stories.spec.json*](../../out/stories.spec.json "open original schema") | - -## default Type - -unknown diff --git a/docs/spec/stories-properties-narrative.md b/docs/spec/stories-properties-narrative.md deleted file mode 100644 index cc4532dd7b..0000000000 --- a/docs/spec/stories-properties-narrative.md +++ /dev/null @@ -1,26 +0,0 @@ -# Untitled string in Analytics Story Schema Schema - -```txt -#/properties/narrative#/properties/narrative -``` - -narrative of the analytics story - -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [stories.spec.json*](../../out/stories.spec.json "open original schema") | - -## narrative Type - -`string` - -## narrative Examples - -```yaml ->- - gathering credentials from a target system, often hashed or encrypted, is a - common attack technique. Even though the credentials may not be in plain text, - an attacker can still exfiltrate the data and set to cracking it offline, on - their own systems. - -``` diff --git a/docs/spec/stories.md b/docs/spec/stories.md index 50b565a2fe..9e37724776 100644 --- a/docs/spec/stories.md +++ b/docs/spec/stories.md @@ -6,9 +6,9 @@ http://example.com/example.json schema analytics story -| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | -| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------- | -| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [stories.spec.json](../../out/stories.spec.json "open original schema") | +| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | +| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :----------------------------------------------------------------------- | +| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [stories.spec.json](../../spec/stories.spec.json "open original schema") | ## Analytics Story Schema Type diff --git a/docs/stories.md b/docs/stories.md new file mode 100644 index 0000000000..20e5d8db0e --- /dev/null +++ b/docs/stories.md @@ -0,0 +1,4604 @@ +# Splunk Security Content Analytic Stories +![security_content](static/logo.png) +===== +All the Analytic Stories shipped to different Splunk products. Below is a breakdown by kind. + + +## Abuse +
+ details + +### Brand Monitoring +Detect and investigate activity that may indicate that an adversary is using faux domains to mislead users into interacting with malicious infrastructure. Monitor DNS, email, and web traffic for permutations of your brand name. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email, Network_Resolution, Web +- **ATT&CK**: +- **Last Updated**: 2017-12-19 + +
+ details + +#### Detection Profile + +* [Monitor DNS For Brand Abuse](detections.md#monitor-dns-for-brand-abuse) + +* [Monitor Email For Brand Abuse](detections.md#monitor-email-for-brand-abuse) + +* [Monitor Web Traffic For Brand Abuse](detections.md#monitor-web-traffic-for-brand-abuse) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Actions on Objectives + +* Delivery + + +#### Reference + +* https://www.zerofox.com/blog/what-is-digital-risk-monitoring/ + +* https://securingtomorrow.mcafee.com/consumer/family-safety/what-is-typosquatting/ + +* https://blog.malwarebytes.com/cybercrime/2016/06/explained-typosquatting/ + + +_version_: 1 +
+ +--- + +### DNS Amplification Attacks +DNS poses a serious threat as a Denial of Service (DOS) amplifier, if it responds to `ANY` queries. This Analytic Story can help you detect attackers who may be abusing your company's DNS infrastructure to launch amplification attacks, causing Denial of Service to other victims. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1498.002](https://attack.mitre.org/techniques/T1498.002/) +- **Last Updated**: 2016-09-13 + +
+ details + +#### Detection Profile + +* [Large Volume of DNS ANY Queries](detections.md#large-volume-of-dns-any-queries) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1498.002 | Reflection Amplification | Impact | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.us-cert.gov/ncas/alerts/TA13-088A + +* https://www.imperva.com/learn/application-security/dns-amplification/ + + +_version_: 1 +
+ +--- + +### Data Protection +Fortify your data-protection arsenal--while continuing to ensure data confidentiality and integrity--with searches that monitor for and help you investigate possible signs of data exfiltration. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change_Analysis, Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2017-09-14 + +
+ details + +#### Detection Profile + +* [Detect USB device insertion](detections.md#detect-usb-device-insertion) + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + +* [Detection of DNS Tunnels](detections.md#detection-of-dns-tunnels) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1189 | Drive-by Compromise | Initial Access | +| T1071.001 | Web Protocols | Command and Control | +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.cisecurity.org/controls/data-protection/ + +* https://www.sans.org/reading-room/whitepapers/dns/splunk-detect-dns-tunneling-37022 + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + + +_version_: 1 +
+ +--- + +### Host Redirection +Detect evidence of tactics used to redirect traffic from a host to a destination other than the one intended--potentially one that is part of an adversary's attack infrastructure. An example is redirecting communications regarding patches and updates or misleading users into visiting a malicious website. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2017-09-14 + +
+ details + +#### Detection Profile + +* [Clients Connecting to Multiple DNS Servers](detections.md#clients-connecting-to-multiple-dns-servers) + +* [DNS Query Requests Resolved by Unauthorized DNS Servers](detections.md#dns-query-requests-resolved-by-unauthorized-dns-servers) + +* [Windows hosts file modification](detections.md#windows-hosts-file-modification) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1071.004 | DNS | Command and Control | +| T1095 | Non-Application Layer Protocol | Command and Control | +| T1189 | Drive-by Compromise | Initial Access | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1071.001 | Web Protocols | Command and Control | + +#### Kill Chain Phase + +* Command and Control + + +#### Reference + +* https://blog.malwarebytes.com/cybercrime/2016/09/hosts-file-hijacks/ + + +_version_: 1 +
+ +--- + +### Netsh Abuse +Detect activities and various techniques associated with the abuse of `netsh.exe`, which can disable local firewall settings or set up a remote connection to a host from an infected system. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1562.004](https://attack.mitre.org/techniques/T1562.004/) +- **Last Updated**: 2017-01-05 + +
+ details + +#### Detection Profile + +* [Processes created by netsh](detections.md#processes-created-by-netsh) + +* [Processes launching netsh](detections.md#processes-launching-netsh) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.004 | Disable or Modify System Firewall | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://docs.microsoft.com/en-us/previous-versions/tn-archive/bb490939(v=technet.10) + +* https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html + +* http://blog.jpcert.or.jp/2016/01/windows-commands-abused-by-attackers.html + + +_version_: 1 +
+ +--- + +### Web Fraud Detection +Monitor your environment for activity consistent with common attack techniques bad actors use when attempting to compromise web servers or other web-related assets. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1136](https://attack.mitre.org/techniques/T1136/) +- **Last Updated**: 2018-10-08 + +
+ details + +#### Detection Profile + +* [Web Fraud - Account Harvesting](detections.md#web-fraud---account-harvesting) + +* [Web Fraud - Anomalous User Clickspeed](detections.md#web-fraud---anomalous-user-clickspeed) + +* [Web Fraud - Password Sharing Across Accounts](detections.md#web-fraud---password-sharing-across-accounts) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136 | Create Account | Persistence | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.fbi.gov/scams-and-safety/common-fraud-schemes/internet-fraud + +* https://www.fbi.gov/news/stories/2017-internet-crime-report-released-050718 + + +_version_: 1 +
+ +--- + +
+ +## Adversary Tactics +
+ details + +### Baron Samedit CVE-2021-3156 +Uncover activity consistent with CVE-2021-3156. Discovered by the Qualys Research Team, this vulnerability has been found to affect sudo across multiple Linux distributions (Ubuntu 20.04 and prior, Debian 10 and prior, Fedora 33 and prior). As this vulnerability was committed to code in July 2011, there will be many distributions affected. Successful exploitation of this vulnerability allows any unprivileged user to gain root privileges on the vulnerable host. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2021-01-27 + +
+ details + +#### Detection Profile + +* [Detect Baron Samedit CVE-2021-3156](detections.md#detect-baron-samedit-cve-2021-3156) + +* [Detect Baron Samedit CVE-2021-3156 Segfault](detections.md#detect-baron-samedit-cve-2021-3156-segfault) + +* [Detect Baron Samedit CVE-2021-3156 via OSQuery](detections.md#detect-baron-samedit-cve-2021-3156-via-osquery) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | + +#### Kill Chain Phase + +* Exploitation + + +#### Reference + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +_version_: 1 +
+ +--- + +### Cobalt Strike +Cobalt Strike is threat emulation software. Red teams and penetration testers use Cobalt Strike to demonstrate the risk of a breach and evaluate mature security programs. Most recently, Cobalt Strike has become the choice tool by threat groups due to its ease of use and extensibility. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-16 + +
+ details + +#### Detection Profile + +* [Suspicious Rundll32 StartW](detections.md#suspicious-rundll32-startw) + +* [Suspicious Rundll32 no CommandLine Arguments](detections.md#suspicious-rundll32-no-commandline-arguments) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.cobaltstrike.com/ + +* https://www.infocyte.com/blog/2020/09/02/cobalt-strike-the-new-favorite-among-thieves/ + +* https://bluescreenofjeff.com/2017-01-24-how-to-write-malleable-c2-profiles-for-cobalt-strike/ + +* https://blog.talosintelligence.com/2020/09/coverage-strikes-back-cobalt-strike-paper.html + +* https://www.fireeye.com/blog/threat-research/2020/12/unauthorized-access-of-fireeye-red-team-tools.html + + +_version_: 1 +
+ +--- + +### Collection and Staging +Monitor for and investigate activities--such as suspicious writes to the Windows Recycling Bin or email servers sending high amounts of traffic to specific hosts, for example--that may indicate that an adversary is harvesting and exfiltrating sensitive data. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic +- **ATT&CK**: [T1036](https://attack.mitre.org/techniques/T1036/), [T1114.001](https://attack.mitre.org/techniques/T1114.001/), [T1114.002](https://attack.mitre.org/techniques/T1114.002/) +- **Last Updated**: 2020-02-03 + +
+ details + +#### Detection Profile + +* [Email files written outside of the Outlook directory](detections.md#email-files-written-outside-of-the-outlook-directory) + +* [Email servers sending high volume traffic to hosts](detections.md#email-servers-sending-high-volume-traffic-to-hosts) + +* [Hosts receiving high volume of network traffic from email server](detections.md#hosts-receiving-high-volume-of-network-traffic-from-email-server) + +* [Suspicious writes to System Volume Information](detections.md#suspicious-writes-to-system-volume-information) + +* [Suspicious writes to windows Recycle Bin](detections.md#suspicious-writes-to-windows-recycle-bin) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1114.001 | Local Email Collection | Collection | +| T1114.002 | Remote Email Collection | Collection | +| T1036 | Masquerading | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/wiki/Collection + +* https://attack.mitre.org/wiki/Technique/T1074 + + +_version_: 1 +
+ +--- + +### Command and Control +Detect and investigate tactics, techniques, and procedures leveraged by attackers to establish and operate command and control channels. Implants installed by attackers on compromised endpoints use these channels to receive instructions and send data back to the malicious operators. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution, Network_Traffic +- **ATT&CK**: [T1048](https://attack.mitre.org/techniques/T1048/), [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1071.001](https://attack.mitre.org/techniques/T1071.001/), [T1071.004](https://attack.mitre.org/techniques/T1071.004/), [T1095](https://attack.mitre.org/techniques/T1095/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2018-06-01 + +
+ details + +#### Detection Profile + +* [Clients Connecting to Multiple DNS Servers](detections.md#clients-connecting-to-multiple-dns-servers) + +* [DNS Query Length Outliers - MLTK](detections.md#dns-query-length-outliers---mltk) + +* [DNS Query Length With High Standard Deviation](detections.md#dns-query-length-with-high-standard-deviation) + +* [DNS Query Requests Resolved by Unauthorized DNS Servers](detections.md#dns-query-requests-resolved-by-unauthorized-dns-servers) + +* [Detect Large Outbound ICMP Packets](detections.md#detect-large-outbound-icmp-packets) + +* [Detect Long DNS TXT Record Response](detections.md#detect-long-dns-txt-record-response) + +* [Detect Spike in blocked Outbound Traffic from your AWS](detections.md#detect-spike-in-blocked-outbound-traffic-from-your-aws) + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + +* [Detection of DNS Tunnels](detections.md#detection-of-dns-tunnels) + +* [Excessive DNS Failures](detections.md#excessive-dns-failures) + +* [Prohibited Network Traffic Allowed](detections.md#prohibited-network-traffic-allowed) + +* [Protocol or Port Mismatch](detections.md#protocol-or-port-mismatch) + +* [TOR Traffic](detections.md#tor-traffic) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1071.004 | DNS | Command and Control | +| T1095 | Non-Application Layer Protocol | Command and Control | +| T1189 | Drive-by Compromise | Initial Access | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1071.001 | Web Protocols | Command and Control | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Delivery + + +#### Reference + +* https://attack.mitre.org/wiki/Command_and_Control + +* https://searchsecurity.techtarget.com/feature/Command-and-control-servers-The-puppet-masters-that-govern-malware + + +_version_: 1 +
+ +--- + +### Common Phishing Frameworks +Detect DNS and web requests to fake websites generated by the EvilGinx2 toolkit. These websites are designed to fool unwitting users who have clicked on a malicious link in a phishing email. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1566.003](https://attack.mitre.org/techniques/T1566.003/) +- **Last Updated**: 2019-04-29 + +
+ details + +#### Detection Profile + +* [Detect DNS requests to Phishing Sites leveraging EvilGinx2](detections.md#detect-dns-requests-to-phishing-sites-leveraging-evilginx2) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.003 | Spearphishing via Service | Initial Access | + +#### Kill Chain Phase + +* Command and Control + +* Delivery + + +#### Reference + +* https://github.com/kgretzky/evilginx2 + +* https://attack.mitre.org/techniques/T1192/ + +* https://breakdev.org/evilginx-advanced-phishing-with-two-factor-authentication-bypass/ + + +_version_: 1 +
+ +--- + +### Credential Dumping +Uncover activity consistent with credential dumping, a technique wherein attackers compromise systems and attempt to obtain and exfiltrate passwords. The threat actors use these pilfered credentials to further escalate privileges and spread throughout a target environment. The included searches in this Analytic Story are designed to identify attempts to credential dumping. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003](https://attack.mitre.org/techniques/T1003/), [T1003.001](https://attack.mitre.org/techniques/T1003.001/), [T1003.002](https://attack.mitre.org/techniques/T1003.002/), [T1003.003](https://attack.mitre.org/techniques/T1003.003/), [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Access LSASS Memory for Dump Creation](detections.md#access-lsass-memory-for-dump-creation) + +* [Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass](detections.md#attempt-to-set-default-powershell-execution-policy-to-unrestricted-or-bypass) + +* [Attempted Credential Dump From Registry via Reg exe](detections.md#attempted-credential-dump-from-registry-via-reg-exe) + +* [Create Remote Thread into LSASS](detections.md#create-remote-thread-into-lsass) + +* [Creation of Shadow Copy](detections.md#creation-of-shadow-copy) + +* [Creation of Shadow Copy with wmic and powershell](detections.md#creation-of-shadow-copy-with-wmic-and-powershell) + +* [Creation of lsass Dump with Taskmgr](detections.md#creation-of-lsass-dump-with-taskmgr) + +* [Credential Dumping via Copy Command from Shadow Copy](detections.md#credential-dumping-via-copy-command-from-shadow-copy) + +* [Credential Dumping via Symlink to Shadow Copy](detections.md#credential-dumping-via-symlink-to-shadow-copy) + +* [Detect Credential Dumping through LSASS access](detections.md#detect-credential-dumping-through-lsass-access) + +* [Detect Dump LSASS Memory using comsvcs](detections.md#detect-dump-lsass-memory-using-comsvcs) + +* [Detect Mimikatz Using Loaded Images](detections.md#detect-mimikatz-using-loaded-images) + +* [Dump LSASS via comsvcs DLL](detections.md#dump-lsass-via-comsvcs-dll) + +* [Dump LSASS via procdump](detections.md#dump-lsass-via-procdump) + +* [Dump LSASS via procdump Rename](detections.md#dump-lsass-via-procdump-rename) + +* [Ntdsutil export ntds](detections.md#ntdsutil-export-ntds) + +* [Unsigned Image Loaded by LSASS](detections.md#unsigned-image-loaded-by-lsass) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1003.001 | LSASS Memory | Credential Access | +| T1059.001 | PowerShell | Execution | +| T1003.002 | Security Account Manager | Credential Access | +| T1003 | OS Credential Dumping | Credential Access | +| T1003.003 | NTDS | Credential Access | + +#### Kill Chain Phase + +* Actions on Objectives + +* Installation + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1003 + +* https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for.html + + +_version_: 3 +
+ +--- + +### DNS Hijacking +Secure your environment against DNS hijacks with searches that help you detect and investigate unauthorized changes to DNS records. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1071.004](https://attack.mitre.org/techniques/T1071.004/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Clients Connecting to Multiple DNS Servers](detections.md#clients-connecting-to-multiple-dns-servers) + +* [DNS Query Requests Resolved by Unauthorized DNS Servers](detections.md#dns-query-requests-resolved-by-unauthorized-dns-servers) + +* [DNS record changed](detections.md#dns-record-changed) + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1071.004 | DNS | Command and Control | +| T1095 | Non-Application Layer Protocol | Command and Control | +| T1189 | Drive-by Compromise | Initial Access | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1071.001 | Web Protocols | Command and Control | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2017/09/apt33-insights-into-iranian-cyber-espionage.html + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + +* http://www.noip.com/blog/2014/07/11/dynamic-dns-can-use-2/ + +* https://www.splunk.com/blog/2015/08/04/detecting-dynamic-dns-domains-in-splunk.html + + +_version_: 1 +
+ +--- + +### Data Exfiltration +The stealing of data by an adversary. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1041](https://attack.mitre.org/techniques/T1041/) +- **Last Updated**: 2020-10-21 + +
+ details + +#### Detection Profile + +* [Detect SNICat SNI Exfiltration](detections.md#detect-snicat-sni-exfiltration) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1041 | Exfiltration Over C2 Channel | Exfiltration | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/tactics/TA0010/ + + +_version_: 1 +
+ +--- + +### Detect Zerologon Attack +Uncover activity related to the execution of Zerologon CVE-2020-11472, a technique wherein attackers target a Microsoft Windows Domain Controller to reset its computer account password. The result from this attack is attackers can now provide themselves high privileges and take over Domain Controller. The included searches in this Analytic Story are designed to identify attempts to reset Domain Controller Computer Account via exploit code remotely or via the use of tool Mimikatz as payload carrier. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/), [T1190](https://attack.mitre.org/techniques/T1190/), [T1210](https://attack.mitre.org/techniques/T1210/) +- **Last Updated**: 2020-09-18 + +
+ details + +#### Detection Profile + +* [Detect Computer Changed with Anonymous Account](detections.md#detect-computer-changed-with-anonymous-account) + +* [Detect Credential Dumping through LSASS access](detections.md#detect-credential-dumping-through-lsass-access) + +* [Detect Mimikatz Using Loaded Images](detections.md#detect-mimikatz-using-loaded-images) + +* [Detect Zerologon via Zeek](detections.md#detect-zerologon-via-zeek) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1210 | Exploitation of Remote Services | Lateral Movement | +| T1003.001 | LSASS Memory | Credential Access | +| T1190 | Exploit Public-Facing Application | Initial Access | + +#### Kill Chain Phase + +* Actions on Objectives + +* Exploitation + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1003 + +* https://github.com/SecuraBV/CVE-2020-1472 + +* https://www.secura.com/blog/zero-logon + +* https://nvd.nist.gov/vuln/detail/CVE-2020-1472 + + +_version_: 1 +
+ +--- + +### Disabling Security Tools +Looks for activities and techniques associated with the disabling of security tools on a Windows system, such as suspicious `reg.exe` processes, processes launching netsh, and many others. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1112](https://attack.mitre.org/techniques/T1112/), [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1553.004](https://attack.mitre.org/techniques/T1553.004/), [T1562.001](https://attack.mitre.org/techniques/T1562.001/), [T1562.004](https://attack.mitre.org/techniques/T1562.004/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Attempt To Add Certificate To Untrusted Store](detections.md#attempt-to-add-certificate-to-untrusted-store) + +* [Attempt To Stop Security Service](detections.md#attempt-to-stop-security-service) + +* [Processes launching netsh](detections.md#processes-launching-netsh) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + +* [Suspicious Reg exe Process](detections.md#suspicious-reg-exe-process) + +* [Unload Sysmon Filter Driver](detections.md#unload-sysmon-filter-driver) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1553.004 | Install Root Certificate | Defense Evasion | +| T1562.001 | Disable or Modify Tools | Defense Evasion | +| T1562.004 | Disable or Modify System Firewall | Defense Evasion | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | +| T1112 | Modify Registry | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Installation + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1089 + +* https://blog.malwarebytes.com/cybercrime/2015/11/vonteera-adware-uses-certificates-to-disable-anti-malware/ + +* https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Tools-Report.pdf + + +_version_: 2 +
+ +--- + +### F5 TMUI RCE CVE-2020-5902 +Uncover activity consistent with CVE-2020-5902. Discovered by Positive Technologies researchers, this vulnerability affects F5 BIG-IP, BIG-IQ. and Traffix SDC devices (vulnerable versions in F5 support link below). This vulnerability allows unauthenticated users, along with authenticated users, who have access to the configuration utility to execute system commands, create/delete files, disable services, and/or execute Java code. This vulnerability can result in full system compromise. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1190](https://attack.mitre.org/techniques/T1190/) +- **Last Updated**: 2020-08-02 + +
+ details + +#### Detection Profile + +* [Detect F5 TMUI RCE CVE-2020-5902](detections.md#detect-f5-tmui-rce-cve-2020-5902) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1190 | Exploit Public-Facing Application | Initial Access | + +#### Kill Chain Phase + +* Exploitation + + +#### Reference + +* https://www.ptsecurity.com/ww-en/about/news/f5-fixes-critical-vulnerability-discovered-by-positive-technologies-in-big-ip-application-delivery-controller/ + +* https://support.f5.com/csp/article/K52145254 + +* https://blog.cloudflare.com/cve-2020-5902-helping-to-protect-against-the-f5-tmui-rce-vulnerability/ + + +_version_: 1 +
+ +--- + +### Lateral Movement +Detect and investigate tactics, techniques, and procedures around how attackers move laterally within the enterprise. Because lateral movement can expose the adversary to detection, it should be an important focus for security analysts. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/), [T1053.005](https://attack.mitre.org/techniques/T1053.005/), [T1550.002](https://attack.mitre.org/techniques/T1550.002/), [T1558.003](https://attack.mitre.org/techniques/T1558.003/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Detect Activity Related to Pass the Hash Attacks](detections.md#detect-activity-related-to-pass-the-hash-attacks) + +* [Kerberoasting spn request with RC4 encryption](detections.md#kerberoasting-spn-request-with-rc4-encryption) + +* [Remote Desktop Network Traffic](detections.md#remote-desktop-network-traffic) + +* [Remote Desktop Process Running On System](detections.md#remote-desktop-process-running-on-system) + +* [Schtasks scheduling job on remote system](detections.md#schtasks-scheduling-job-on-remote-system) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1550.002 | Pass the Hash | Defense Evasion, Lateral Movement | +| T1558.003 | Kerberoasting | Credential Access | +| T1021.001 | Remote Desktop Protocol | Lateral Movement | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.fireeye.com/blog/executive-perspective/2015/08/malware_lateral_move.html + + +_version_: 2 +
+ +--- + +### Malicious PowerShell +Attackers are finding stealthy ways "live off the land," leveraging utilities and tools that come standard on the endpoint--such as PowerShell--to achieve their goals without downloading binary files. These searches can help you detect and investigate PowerShell command-line options that may be indicative of malicious intent. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1027](https://attack.mitre.org/techniques/T1027/), [T1059.001](https://attack.mitre.org/techniques/T1059.001/) +- **Last Updated**: 2017-08-23 + +
+ details + +#### Detection Profile + +* [Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass](detections.md#attempt-to-set-default-powershell-execution-policy-to-unrestricted-or-bypass) + +* [Malicious PowerShell Process - Connect To Internet With Hidden Window](detections.md#malicious-powershell-process---connect-to-internet-with-hidden-window) + +* [Malicious PowerShell Process - Encoded Command](detections.md#malicious-powershell-process---encoded-command) + +* [Malicious PowerShell Process - Multiple Suspicious Command-Line Arguments](detections.md#malicious-powershell-process---multiple-suspicious-command-line-arguments) + +* [Malicious PowerShell Process With Obfuscation Techniques](detections.md#malicious-powershell-process-with-obfuscation-techniques) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | +| T1027 | Obfuscated Files or Information | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://blogs.mcafee.com/mcafee-labs/malware-employs-powershell-to-infect-systems/ + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + + +_version_: 4 +
+ +--- + +### Phishing Payloads +Detect signs of malicious payloads that may indicate that your environment has been breached via a phishing attack. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1566.001](https://attack.mitre.org/techniques/T1566.001/), [T1566.002](https://attack.mitre.org/techniques/T1566.002/) +- **Last Updated**: 2019-04-29 + +
+ details + +#### Detection Profile + +* [Detect Oulook exe writing a zip file](detections.md#detect-oulook-exe-writing-a--zip-file) + +* [Process Creating LNK file in Suspicious Location](detections.md#process-creating-lnk-file-in-suspicious-location) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566.001 | Spearphishing Attachment | Initial Access | +| T1566.002 | Spearphishing Link | Initial Access | + +#### Kill Chain Phase + +* Actions on Objectives + +* Installation + + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2019/04/spear-phishing-campaign-targets-ukraine-government.html + + +_version_: 1 +
+ +--- + +### Possible Backdoor Activity Associated With MUDCARP Espionage Campaigns +Monitor your environment for suspicious behaviors that resemble the techniques employed by the MUDCARP threat group. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/) +- **Last Updated**: 2020-01-22 + +
+ details + +#### Detection Profile + +* [First time seen command line argument](detections.md#first-time-seen-command-line-argument) + +* [Malicious PowerShell Process - Connect To Internet With Hidden Window](detections.md#malicious-powershell-process---connect-to-internet-with-hidden-window) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [Unusually Long Command Line](detections.md#unusually-long-command-line) + +* [Unusually Long Command Line - MLTK](detections.md#unusually-long-command-line---mltk) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://www.infosecurity-magazine.com/news/scope-of-mudcarp-attacks-highlight-1/ + +* http://blog.amossys.fr/badflick-is-not-so-bad.html + + +_version_: 1 +
+ +--- + +### SQL Injection +Use the searches in this Analytic Story to help you detect structured query language (SQL) injection attempts characterized by long URLs that contain malicious parameters. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1190](https://attack.mitre.org/techniques/T1190/) +- **Last Updated**: 2017-09-19 + +
+ details + +#### Detection Profile + +* [SQL Injection with Long URLs](detections.md#sql-injection-with-long-urls) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1190 | Exploit Public-Facing Application | Initial Access | + +#### Kill Chain Phase + +* Delivery + + +#### Reference + +* https://capec.mitre.org/data/definitions/66.html + +* https://www.incapsula.com/web-application-security/sql-injection.html + + +_version_: 1 +
+ +--- + +### Sunburst Malware +Sunburst is a trojanized updates to SolarWinds Orion IT monitoring and management software. It was discovered by FireEye in December 2020. The actors behind this campaign gained access to numerous public and private organizations around the world. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic, Web +- **ATT&CK**: [T1018](https://attack.mitre.org/techniques/T1018/), [T1027](https://attack.mitre.org/techniques/T1027/), [T1053.005](https://attack.mitre.org/techniques/T1053.005/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1071.001](https://attack.mitre.org/techniques/T1071.001/), [T1071.002](https://attack.mitre.org/techniques/T1071.002/), [T1203](https://attack.mitre.org/techniques/T1203/), [T1505.003](https://attack.mitre.org/techniques/T1505.003/), [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1569.002](https://attack.mitre.org/techniques/T1569.002/) +- **Last Updated**: 2020-12-14 + +
+ details + +#### Detection Profile + +* [Detect Outbound SMB Traffic](detections.md#detect-outbound-smb-traffic) + +* [Detect Prohibited Applications Spawning cmd exe](detections.md#detect-prohibited-applications-spawning-cmd-exe) + +* [First Time Seen Running Windows Service](detections.md#first-time-seen-running-windows-service) + +* [Malicious PowerShell Process - Encoded Command](detections.md#malicious-powershell-process---encoded-command) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + +* [Scheduled Task Deleted Or Created via CMD](detections.md#scheduled-task-deleted-or-created-via-cmd) + +* [Schtasks scheduling job on remote system](detections.md#schtasks-scheduling-job-on-remote-system) + +* [Sunburst Correlation DLL and Network Event](detections.md#sunburst-correlation-dll-and-network-event) + +* [Supernova Webshell](detections.md#supernova-webshell) + +* [TOR Traffic](detections.md#tor-traffic) + +* [Windows AdFind Exe](detections.md#windows-adfind-exe) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1071.002 | File Transfer Protocols | Command and Control | +| T1059.003 | Windows Command Shell | Execution | +| T1569.002 | Service Execution | Execution | +| T1027 | Obfuscated Files or Information | Defense Evasion | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | +| T1203 | Exploitation for Client Execution | Execution | +| T1505.003 | Web Shell | Persistence | +| T1071.001 | Web Protocols | Command and Control | +| T1018 | Remote System Discovery | Discovery | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Exfiltration + +* Exploitation + +* Installation + + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html + +* https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/ + + +_version_: 1 +
+ +--- + +### Suspicious Command-Line Executions +Leveraging the Windows command-line interface (CLI) is one of the most common attack techniques--one that is also detailed in the MITRE ATT&CK framework. Use this Analytic Story to help you identify unusual or suspicious use of the CLI on Windows systems. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/) +- **Last Updated**: 2020-02-03 + +
+ details + +#### Detection Profile + +* [Detect Prohibited Applications Spawning cmd exe](detections.md#detect-prohibited-applications-spawning-cmd-exe) + +* [Detect Use of cmd exe to Launch Script Interpreters](detections.md#detect-use-of-cmd-exe-to-launch-script-interpreters) + +* [First time seen command line argument](detections.md#first-time-seen-command-line-argument) + +* [System Processes Run From Unexpected Locations](detections.md#system-processes-run-from-unexpected-locations) + +* [Unusually Long Command Line](detections.md#unusually-long-command-line) + +* [Unusually Long Command Line - MLTK](detections.md#unusually-long-command-line---mltk) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1059.001 | PowerShell | Execution | +| T1036.003 | Rename System Utilities | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Exploitation + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1059 + +* https://www.microsoft.com/en-us/wdsi/threats/macro-malware + +* https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf + + +_version_: 2 +
+ +--- + +### Suspicious Compiled HTML Activity +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.001](https://attack.mitre.org/techniques/T1218.001/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Detection Profile + +* [Detect HTML Help Renamed](detections.md#detect-html-help-renamed) + +* [Detect HTML Help Spawn Child Process](detections.md#detect-html-help-spawn-child-process) + +* [Detect HTML Help URL in Command Line](detections.md#detect-html-help-url-in-command-line) + +* [Detect HTML Help Using InfoTech Storage Handlers](detections.md#detect-html-help-using-infotech-storage-handlers) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.001 | Compiled HTML File | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://docs.microsoft.com/en-us/windows/win32/api/htmlhelp/nf-htmlhelp-htmlhelpa + + +_version_: 1 +
+ +--- + +### Suspicious DNS Traffic +Attackers often attempt to hide within or otherwise abuse the domain name system (DNS). You can thwart attempts to manipulate this omnipresent protocol by monitoring for these types of abuses. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1071.004](https://attack.mitre.org/techniques/T1071.004/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2017-09-18 + +
+ details + +#### Detection Profile + +* [Clients Connecting to Multiple DNS Servers](detections.md#clients-connecting-to-multiple-dns-servers) + +* [DNS Query Length Outliers - MLTK](detections.md#dns-query-length-outliers---mltk) + +* [DNS Query Length With High Standard Deviation](detections.md#dns-query-length-with-high-standard-deviation) + +* [DNS Query Requests Resolved by Unauthorized DNS Servers](detections.md#dns-query-requests-resolved-by-unauthorized-dns-servers) + +* [Detect Long DNS TXT Record Response](detections.md#detect-long-dns-txt-record-response) + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + +* [Detection of DNS Tunnels](detections.md#detection-of-dns-tunnels) + +* [Excessive DNS Failures](detections.md#excessive-dns-failures) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1071.004 | DNS | Command and Control | +| T1095 | Non-Application Layer Protocol | Command and Control | +| T1189 | Drive-by Compromise | Initial Access | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1071.001 | Web Protocols | Command and Control | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* http://blogs.splunk.com/2015/10/01/random-words-on-entropy-and-dns/ + +* http://www.darkreading.com/analytics/security-monitoring/got-malware-three-signs-revealed-in-dns-traffic/d/d-id/1139680 + +* https://live.paloaltonetworks.com/t5/Threat-Vulnerability-Articles/What-are-suspicious-DNS-queries/ta-p/71454 + + +_version_: 1 +
+ +--- + +### Suspicious Emails +Email remains one of the primary means for attackers to gain an initial foothold within the modern enterprise. Detect and investigate suspicious emails in your environment with the help of the searches in this Analytic Story. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email, UEBA +- **ATT&CK**: [T1566](https://attack.mitre.org/techniques/T1566/), [T1566.001](https://attack.mitre.org/techniques/T1566.001/) +- **Last Updated**: 2020-01-27 + +
+ details + +#### Detection Profile + +* [Email Attachments With Lots Of Spaces](detections.md#email-attachments-with-lots-of-spaces) + +* [Monitor Email For Brand Abuse](detections.md#monitor-email-for-brand-abuse) + +* [Suspicious Email - UBA Anomaly](detections.md#suspicious-email---uba-anomaly) + +* [Suspicious Email Attachment Extensions](detections.md#suspicious-email-attachment-extensions) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1566 | Phishing | Initial Access | +| T1566.001 | Spearphishing Attachment | Initial Access | + +#### Kill Chain Phase + +* Delivery + + +#### Reference + +* https://www.splunk.com/blog/2015/06/26/phishing-hits-a-new-level-of-quality/ + + +_version_: 1 +
+ +--- + +### Suspicious MSHTA Activity +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1218.005](https://attack.mitre.org/techniques/T1218.005/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/) +- **Last Updated**: 2021-01-20 + +
+ details + +#### Detection Profile + +* [Detect MSHTA Url in Command Line](detections.md#detect-mshta-url-in-command-line) + +* [Detect Prohibited Applications Spawning cmd exe](detections.md#detect-prohibited-applications-spawning-cmd-exe) + +* [Detect Rundll32 Inline HTA Execution](detections.md#detect-rundll32-inline-hta-execution) + +* [Detect mshta inline hta execution](detections.md#detect-mshta-inline-hta-execution) + +* [Detect mshta renamed](detections.md#detect-mshta-renamed) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [Suspicious mshta child process](detections.md#suspicious-mshta-child-process) + +* [Suspicious mshta spawn](detections.md#suspicious-mshta-spawn) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.005 | Mshta | Defense Evasion | +| T1059.003 | Windows Command Shell | Execution | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + +* Exploitation + + +#### Reference + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://redcanary.com/blog/windows-registry-attacks-threat-detection/ + +* https://attack.mitre.org/techniques/T1218/005/ + +* https://medium.com/@mbromileyDFIR/malware-monday-aebb456356c5 + + +_version_: 2 +
+ +--- + +### Suspicious Okta Activity +Monitor your Okta environment for suspicious activities. Due to the Covid outbreak, many users are migrating over to leverage cloud services more and more. Okta is a popular tool to manage multiple users and the web-based applications they need to stay productive. The searches in this story will help monitor your Okta environment for suspicious activities and associated user behaviors. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.001](https://attack.mitre.org/techniques/T1078.001/) +- **Last Updated**: 2020-04-02 + +
+ details + +#### Detection Profile + +* [Multiple Okta Users With Invalid Credentials From The Same IP](detections.md#multiple-okta-users-with-invalid-credentials-from-the-same-ip) + +* [Okta Account Lockout Events](detections.md#okta-account-lockout-events) + +* [Okta Failed SSO Attempts](detections.md#okta-failed-sso-attempts) + +* [Okta User Logins From Multiple Cities](detections.md#okta-user-logins-from-multiple-cities) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.001 | Default Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1078 + +* https://owasp.org/www-community/attacks/Credential_stuffing + +* https://searchsecurity.techtarget.com/answer/What-is-a-password-spraying-attack-and-how-does-it-work + + +_version_: 1 +
+ +--- + +### Suspicious Regsvcs Regasm Activity +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.009](https://attack.mitre.org/techniques/T1218.009/) +- **Last Updated**: 2021-02-11 + +
+ details + +#### Detection Profile + +* [Detect Regasm Spawning a Process](detections.md#detect-regasm-spawning-a-process) + +* [Detect Regasm with Network Connection](detections.md#detect-regasm-with-network-connection) + +* [Detect Regasm with no Command Line Arguments](detections.md#detect-regasm-with-no-command-line-arguments) + +* [Detect Regsvcs Spawning a Process](detections.md#detect-regsvcs-spawning-a-process) + +* [Detect Regsvcs with Network Connection](detections.md#detect-regsvcs-with-network-connection) + +* [Detect Regsvcs with No Command Line Arguments](detections.md#detect-regsvcs-with-no-command-line-arguments) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.009 | Regsvcs/Regasm | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/rapid7/metasploit-framework/blob/master/documentation/modules/evasion/windows/applocker_evasion_regasm_regsvcs.md + +* https://oddvar.moe/2017/12/13/applocker-case-study-how-insecure-is-it-really-part-1/ + + +_version_: 1 +
+ +--- + +### Suspicious Regsvr32 Activity +Monitor and detect techniques used by attackers who leverage the regsvr32.exe process to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1218.010](https://attack.mitre.org/techniques/T1218.010/) +- **Last Updated**: 2021-01-29 + +
+ details + +#### Detection Profile + +* [Detect Regsvr32 Application Control Bypass](detections.md#detect-regsvr32-application-control-bypass) + +* [Suspicious Regsvr32 Register Suspicious Path](detections.md#suspicious-regsvr32-register-suspicious-path) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.010 | Regsvr32 | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + + +_version_: 1 +
+ +--- + +### Suspicious Rundll32 Activity +Monitor and detect techniques used by attackers who leverage rundll32.exe to execute arbitrary malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2021-02-03 + +
+ details + +#### Detection Profile + +* [Detect Rundll32 Application Control Bypass - advpack](detections.md#detect-rundll32-application-control-bypass---advpack) + +* [Detect Rundll32 Application Control Bypass - setupapi](detections.md#detect-rundll32-application-control-bypass---setupapi) + +* [Detect Rundll32 Application Control Bypass - syssetup](detections.md#detect-rundll32-application-control-bypass---syssetup) + +* [Dump LSASS via comsvcs DLL](detections.md#dump-lsass-via-comsvcs-dll) + +* [Suspicious Rundll32 Rename](detections.md#suspicious-rundll32-rename) + +* [Suspicious Rundll32 StartW](detections.md#suspicious-rundll32-startw) + +* [Suspicious Rundll32 dllregisterserver](detections.md#suspicious-rundll32-dllregisterserver) + +* [Suspicious Rundll32 no CommandLine Arguments](detections.md#suspicious-rundll32-no-commandline-arguments) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1218.011 | Rundll32 | Defense Evasion | +| T1003.001 | LSASS Memory | Credential Access | +| T1036.003 | Rename System Utilities | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + + +_version_: 1 +
+ +--- + +### Suspicious WMI Use +Attackers are increasingly abusing Windows Management Instrumentation (WMI), a framework and associated utilities available on all modern Windows operating systems. Because WMI can be leveraged to manage both local and remote systems, it is important to identify the processes executed and the user context within which the activity occurred. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1047](https://attack.mitre.org/techniques/T1047/), [T1546.003](https://attack.mitre.org/techniques/T1546.003/) +- **Last Updated**: 2018-10-23 + +
+ details + +#### Detection Profile + +* [Process Execution via WMI](detections.md#process-execution-via-wmi) + +* [Remote Process Instantiation via WMI](detections.md#remote-process-instantiation-via-wmi) + +* [Remote WMI Command Attempt](detections.md#remote-wmi-command-attempt) + +* [Script Execution via WMI](detections.md#script-execution-via-wmi) + +* [WMI Permanent Event Subscription](detections.md#wmi-permanent-event-subscription) + +* [WMI Permanent Event Subscription - Sysmon](detections.md#wmi-permanent-event-subscription---sysmon) + +* [WMI Temporary Event Subscription](detections.md#wmi-temporary-event-subscription) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1047 | Windows Management Instrumentation | Execution | +| T1546.003 | Windows Management Instrumentation Event Subscription | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.blackhat.com/docs/us-15/materials/us-15-Graeber-Abusing-Windows-Management-Instrumentation-WMI-To-Build-A-Persistent%20Asynchronous-And-Fileless-Backdoor-wp.pdf + +* https://www.fireeye.com/blog/threat-research/2017/03/wmimplant_a_wmi_ba.html + + +_version_: 2 +
+ +--- + +### Suspicious Windows Registry Activities +Monitor and detect registry changes initiated from remote locations, which can be a sign that an attacker has infiltrated your system. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1546.001](https://attack.mitre.org/techniques/T1546.001/), [T1546.011](https://attack.mitre.org/techniques/T1546.011/), [T1546.012](https://attack.mitre.org/techniques/T1546.012/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/), [T1547.010](https://attack.mitre.org/techniques/T1547.010/), [T1548.002](https://attack.mitre.org/techniques/T1548.002/), [T1564.001](https://attack.mitre.org/techniques/T1564.001/) +- **Last Updated**: 2018-05-31 + +
+ details + +#### Detection Profile + +* [Disabling Remote User Account Control](detections.md#disabling-remote-user-account-control) + +* [Monitor Registry Keys for Print Monitors](detections.md#monitor-registry-keys-for-print-monitors) + +* [Reg exe used to hide files directories via registry keys](detections.md#reg-exe-used-to-hide-files-directories-via-registry-keys) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [Registry Keys Used For Privilege Escalation](detections.md#registry-keys-used-for-privilege-escalation) + +* [Registry Keys for Creating SHIM Databases](detections.md#registry-keys-for-creating-shim-databases) + +* [Remote Registry Key modifications](detections.md#remote-registry-key-modifications) + +* [Suspicious Changes to File Associations](detections.md#suspicious-changes-to-file-associations) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1548.002 | Bypass User Account Control | Defense Evasion, Privilege Escalation | +| T1222.001 | Windows File and Directory Permissions Modification | Defense Evasion | +| T1547.010 | Port Monitors | Persistence, Privilege Escalation | +| T1564.001 | Hidden Files and Directories | Defense Evasion | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1546.012 | Image File Execution Options Injection | Persistence, Privilege Escalation | +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | +| T1546.001 | Change Default File Association | Persistence, Privilege Escalation | +| T1112 | Modify Registry | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://redcanary.com/blog/windows-registry-attacks-threat-detection/ + +* https://attack.mitre.org/wiki/Technique/T1112 + + +_version_: 1 +
+ +--- + +### Suspicious Zoom Child Processes +Attackers are using Zoom as an vector to increase privileges on a sytems. This story detects new child processes of zoom and provides investigative actions for this detection. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1068](https://attack.mitre.org/techniques/T1068/) +- **Last Updated**: 2020-04-13 + +
+ details + +#### Detection Profile + +* [Detect Prohibited Applications Spawning cmd exe](detections.md#detect-prohibited-applications-spawning-cmd-exe) + +* [First Time Seen Child Process of Zoom](detections.md#first-time-seen-child-process-of-zoom) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1059.001 | PowerShell | Execution | +| T1036.003 | Rename System Utilities | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Exploitation + + +#### Reference + +* https://blog.rapid7.com/2020/04/02/dispelling-zoom-bugbears-what-you-need-to-know-about-the-latest-zoom-vulnerabilities/ + +* https://threatpost.com/two-zoom-zero-day-flaws-uncovered/154337/ + + +_version_: 1 +
+ +--- + +### Trusted Developer Utilities Proxy Execution +Monitor and detect behaviors used by attackers who leverage trusted developer utilities to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1127](https://attack.mitre.org/techniques/T1127/) +- **Last Updated**: 2021-01-12 + +
+ details + +#### Detection Profile + +* [Suspicious microsoft workflow compiler rename](detections.md#suspicious-microsoft-workflow-compiler-rename) + +* [Suspicious microsoft workflow compiler usage](detections.md#suspicious-microsoft-workflow-compiler-usage) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127 | Trusted Developer Utilities Proxy Execution | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + +#### Kill Chain Phase + +* Exploitation + + +#### Reference + +* https://attack.mitre.org/techniques/T1127/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md + +* https://lolbas-project.github.io/lolbas/Binaries/Microsoft.Workflow.Compiler/ + + +_version_: 1 +
+ +--- + +### Trusted Developer Utilities Proxy Execution MSBuild +Monitor and detect techniques used by attackers who leverage the msbuild.exe process to execute malicious code. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1127.001](https://attack.mitre.org/techniques/T1127.001/) +- **Last Updated**: 2021-01-21 + +
+ details + +#### Detection Profile + +* [Suspicious MSBuild Rename](detections.md#suspicious-msbuild-rename) + +* [Suspicious MSBuild Spawn](detections.md#suspicious-msbuild-spawn) + +* [Suspicious msbuild path](detections.md#suspicious-msbuild-path) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1127.001 | MSBuild | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | + +#### Kill Chain Phase + +* Exploitation + + +#### Reference + +* https://attack.mitre.org/techniques/T1127/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + +* https://github.com/infosecn1nja/MaliciousMacroMSBuild + +* https://github.com/xorrior/RandomPS-Scripts/blob/master/Invoke-ExecuteMSBuild.ps1 + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/MHaggis/CBR-Queries/blob/master/msbuild.md + + +_version_: 1 +
+ +--- + +### Windows DNS SIGRed CVE-2020-1350 +Uncover activity consistent with CVE-2020-1350, or SIGRed. Discovered by Checkpoint researchers, this vulnerability affects Windows 2003 to 2019, and is triggered by a malicious DNS response (only affects DNS over TCP). An attacker can use the malicious payload to cause a buffer overflow on the vulnerable system, leading to compromise. The included searches in this Analytic Story are designed to identify the large response payload for SIG and KEY DNS records which can be used for the exploit. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution +- **ATT&CK**: [T1203](https://attack.mitre.org/techniques/T1203/) +- **Last Updated**: 2020-07-28 + +
+ details + +#### Detection Profile + +* [Detect Windows DNS SIGRed via Splunk Stream](detections.md#detect-windows-dns-sigred-via-splunk-stream) + +* [Detect Windows DNS SIGRed via Zeek](detections.md#detect-windows-dns-sigred-via-zeek) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1203 | Exploitation for Client Execution | Execution | + +#### Kill Chain Phase + +* Exploitation + + +#### Reference + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + +* https://support.microsoft.com/en-au/help/4569509/windows-dns-server-remote-code-execution-vulnerability + + +_version_: 1 +
+ +--- + +### Windows Defense Evasion Tactics +Detect tactics used by malware to evade defenses on Windows endpoints. A few of these include suspicious `reg.exe` processes, files hidden with `attrib.exe` and disabling user-account control, among many others + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1112](https://attack.mitre.org/techniques/T1112/), [T1222.001](https://attack.mitre.org/techniques/T1222.001/), [T1548.002](https://attack.mitre.org/techniques/T1548.002/), [T1564.001](https://attack.mitre.org/techniques/T1564.001/) +- **Last Updated**: 2018-05-31 + +
+ details + +#### Detection Profile + +* [Disabling Remote User Account Control](detections.md#disabling-remote-user-account-control) + +* [Hiding Files And Directories With Attrib exe](detections.md#hiding-files-and-directories-with-attrib-exe) + +* [Reg exe used to hide files directories via registry keys](detections.md#reg-exe-used-to-hide-files-directories-via-registry-keys) + +* [Remote Registry Key modifications](detections.md#remote-registry-key-modifications) + +* [Suspicious Reg exe Process](detections.md#suspicious-reg-exe-process) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1548.002 | Bypass User Account Control | Defense Evasion, Privilege Escalation | +| T1222.001 | Windows File and Directory Permissions Modification | Defense Evasion | +| T1547.010 | Port Monitors | Persistence, Privilege Escalation | +| T1564.001 | Hidden Files and Directories | Defense Evasion | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1546.012 | Image File Execution Options Injection | Persistence, Privilege Escalation | +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | +| T1546.001 | Change Default File Association | Persistence, Privilege Escalation | +| T1112 | Modify Registry | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://attack.mitre.org/wiki/Defense_Evasion + + +_version_: 1 +
+ +--- + +### Windows Log Manipulation +Adversaries often try to cover their tracks by manipulating Windows logs. Use these searches to help you monitor for suspicious activity surrounding log files--an essential component of an effective defense. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1070](https://attack.mitre.org/techniques/T1070/), [T1070.001](https://attack.mitre.org/techniques/T1070.001/), [T1490](https://attack.mitre.org/techniques/T1490/) +- **Last Updated**: 2017-09-12 + +
+ details + +#### Detection Profile + +* [Deleting Shadow Copies](detections.md#deleting-shadow-copies) + +* [Suspicious wevtutil Usage](detections.md#suspicious-wevtutil-usage) + +* [USN Journal Deletion](detections.md#usn-journal-deletion) + +* [Windows Event Log Cleared](detections.md#windows-event-log-cleared) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | +| T1070.001 | Clear Windows Event Logs | Defense Evasion | +| T1070 | Indicator Removal on Host | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + +* https://zeltser.com/security-incident-log-review-checklist/ + +* http://journeyintoir.blogspot.com/2013/01/re-introducing-usnjrnl.html + + +_version_: 2 +
+ +--- + +### Windows Persistence Techniques +Monitor for activities and techniques associated with maintaining persistence on a Windows system--a sign that an adversary may have compromised your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1053.005](https://attack.mitre.org/techniques/T1053.005/), [T1222.001](https://attack.mitre.org/techniques/T1222.001/), [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1546.011](https://attack.mitre.org/techniques/T1546.011/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/), [T1547.010](https://attack.mitre.org/techniques/T1547.010/), [T1564.001](https://attack.mitre.org/techniques/T1564.001/), [T1574.009](https://attack.mitre.org/techniques/T1574.009/), [T1574.011](https://attack.mitre.org/techniques/T1574.011/) +- **Last Updated**: 2018-05-31 + +
+ details + +#### Detection Profile + +* [Certutil exe certificate extraction](detections.md#certutil-exe-certificate-extraction) + +* [Detect Path Interception By Creation Of program exe](detections.md#detect-path-interception-by-creation-of-program-exe) + +* [Hiding Files And Directories With Attrib exe](detections.md#hiding-files-and-directories-with-attrib-exe) + +* [Monitor Registry Keys for Print Monitors](detections.md#monitor-registry-keys-for-print-monitors) + +* [Reg exe Manipulating Windows Services Registry Keys](detections.md#reg-exe-manipulating-windows-services-registry-keys) + +* [Reg exe used to hide files directories via registry keys](detections.md#reg-exe-used-to-hide-files-directories-via-registry-keys) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [Registry Keys for Creating SHIM Databases](detections.md#registry-keys-for-creating-shim-databases) + +* [Remote Registry Key modifications](detections.md#remote-registry-key-modifications) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + +* [Schtasks used for forcing a reboot](detections.md#schtasks-used-for-forcing-a-reboot) + +* [Shim Database File Creation](detections.md#shim-database-file-creation) + +* [Shim Database Installation With Suspicious Parameters](detections.md#shim-database-installation-with-suspicious-parameters) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1574.009 | Path Interception by Unquoted Path | Defense Evasion, Persistence, Privilege Escalation | +| T1222.001 | Windows File and Directory Permissions Modification | Defense Evasion | +| T1547.010 | Port Monitors | Persistence, Privilege Escalation | +| T1574.011 | Services Registry Permissions Weakness | Defense Evasion, Persistence, Privilege Escalation | +| T1564.001 | Hidden Files and Directories | Defense Evasion | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1546.011 | Application Shimming | Persistence, Privilege Escalation | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + +* Installation + + +#### Reference + +* http://www.fuzzysecurity.com/tutorials/19.html + +* https://www.fireeye.com/blog/threat-research/2010/07/malware-persistence-windows-registry.html + +* http://resources.infosecinstitute.com/common-malware-persistence-mechanisms/ + +* https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html + +* https://www.youtube.com/watch?v=dq2Hv7J9fvk + + +_version_: 2 +
+ +--- + +### Windows Privilege Escalation +Monitor for and investigate activities that may be associated with a Windows privilege-escalation attack, including unusual processes running on endpoints, modified registry keys, and more. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1068](https://attack.mitre.org/techniques/T1068/), [T1204.002](https://attack.mitre.org/techniques/T1204.002/), [T1546.008](https://attack.mitre.org/techniques/T1546.008/), [T1546.012](https://attack.mitre.org/techniques/T1546.012/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Child Processes of Spoolsv exe](detections.md#child-processes-of-spoolsv-exe) + +* [Overwriting Accessibility Binaries](detections.md#overwriting-accessibility-binaries) + +* [Registry Keys Used For Privilege Escalation](detections.md#registry-keys-used-for-privilege-escalation) + +* [Uncommon Processes On Endpoint](detections.md#uncommon-processes-on-endpoint) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1068 | Exploitation for Privilege Escalation | Privilege Escalation | +| T1546.008 | Accessibility Features | Persistence, Privilege Escalation | +| T1546.012 | Image File Execution Options Injection | Persistence, Privilege Escalation | +| T1204.002 | Malicious File | Execution | + +#### Kill Chain Phase + +* Actions on Objectives + +* Exploitation + + +#### Reference + +* https://attack.mitre.org/tactics/TA0004/ + + +_version_: 2 +
+ +--- + +
+ +## Best Practices +
+ details + +### Asset Tracking +Keep a careful inventory of every asset on your network to make it easier to detect rogue devices. Unauthorized/unmanaged devices could be an indication of malicious behavior that should be investigated further. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Sessions +- **ATT&CK**: +- **Last Updated**: 2017-09-13 + +
+ details + +#### Detection Profile + +* [Detect Unauthorized Assets by MAC address](detections.md#detect-unauthorized-assets-by-mac-address) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Actions on Objectives + +* Delivery + +* Reconnaissance + + +#### Reference + +* https://www.cisecurity.org/controls/inventory-of-authorized-and-unauthorized-devices/ + + +_version_: 1 +
+ +--- + +### Monitor Backup Solution +Address common concerns when monitoring your backup processes. These searches can help you reduce risks from ransomware, device theft, or denial of physical access to a host by backing up data on endpoints. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-09-12 + +
+ details + +#### Detection Profile + +* [Extended Period Without Successful Netbackup Backups](detections.md#extended-period-without-successful-netbackup-backups) + +* [Unsuccessful Netbackup backups](detections.md#unsuccessful-netbackup-backups) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + + +#### Reference + +* https://www.carbonblack.com/2016/03/04/tracking-locky-ransomware-using-carbon-black/ + + +_version_: 1 +
+ +--- + +### Monitor for Unauthorized Software +Identify and investigate prohibited/unauthorized software or processes that may be concealing malicious behavior within your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: +- **Last Updated**: 2017-09-15 + +
+ details + +#### Detection Profile + +* [Prohibited Software On Endpoint](detections.md#prohibited-software-on-endpoint) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + + +_version_: 1 +
+ +--- + +### Monitor for Updates +Monitor your enterprise to ensure that your endpoints are being patched and updated. Adversaries notoriously exploit known vulnerabilities that could be mitigated by applying routine security patches. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Updates +- **ATT&CK**: +- **Last Updated**: 2017-09-15 + +
+ details + +#### Detection Profile + +* [No Windows Updates in a time frame](detections.md#no-windows-updates-in-a-time-frame) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + + +#### Reference + +* https://learn.cisecurity.org/20-controls-download + + +_version_: 1 +
+ +--- + +### Prohibited Traffic Allowed or Protocol Mismatch +Detect instances of prohibited network traffic allowed in the environment, as well as protocols running on non-standard ports. Both of these types of behaviors typically violate policy and can be leveraged by attackers. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution, Network_Traffic +- **ATT&CK**: [T1048](https://attack.mitre.org/techniques/T1048/), [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1071.001](https://attack.mitre.org/techniques/T1071.001/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2017-09-11 + +
+ details + +#### Detection Profile + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + +* [Prohibited Network Traffic Allowed](detections.md#prohibited-network-traffic-allowed) + +* [Protocol or Port Mismatch](detections.md#protocol-or-port-mismatch) + +* [TOR Traffic](detections.md#tor-traffic) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1189 | Drive-by Compromise | Initial Access | +| T1071.001 | Web Protocols | Command and Control | +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Delivery + + +#### Reference + +* http://www.novetta.com/2015/02/advanced-methods-to-detect-advanced-cyber-attacks-protocol-abuse/ + + +_version_: 1 +
+ +--- + +### Router and Infrastructure Security +Validate the security configuration of network infrastructure and verify that only authorized users and systems are accessing critical assets. Core routing and switching infrastructure are common strategic targets for attackers. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication, Network_Traffic +- **ATT&CK**: [T1020.001](https://attack.mitre.org/techniques/T1020.001/), [T1200](https://attack.mitre.org/techniques/T1200/), [T1498](https://attack.mitre.org/techniques/T1498/), [T1542.005](https://attack.mitre.org/techniques/T1542.005/), [T1557](https://attack.mitre.org/techniques/T1557/), [T1557.002](https://attack.mitre.org/techniques/T1557.002/) +- **Last Updated**: 2017-09-12 + +
+ details + +#### Detection Profile + +* [Detect ARP Poisoning](detections.md#detect-arp-poisoning) + +* [Detect IPv6 Network Infrastructure Threats](detections.md#detect-ipv6-network-infrastructure-threats) + +* [Detect New Login Attempts to Routers](detections.md#detect-new-login-attempts-to-routers) + +* [Detect Port Security Violation](detections.md#detect-port-security-violation) + +* [Detect Rogue DHCP Server](detections.md#detect-rogue-dhcp-server) + +* [Detect Software Download To Network Device](detections.md#detect-software-download-to-network-device) + +* [Detect Traffic Mirroring](detections.md#detect-traffic-mirroring) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1200 | Hardware Additions | Initial Access | +| T1498 | Network Denial of Service | Impact | +| T1557.002 | ARP Cache Poisoning | Collection, Credential Access | +| T1557 | Man-in-the-Middle | Collection, Credential Access | +| T1542.005 | TFTP Boot | Defense Evasion, Persistence | +| T1020.001 | Traffic Duplication | Exfiltration | + +#### Kill Chain Phase + +* Actions on Objectives + +* Delivery + +* Exploitation + +* Reconnaissance + + +#### Reference + +* https://www.fireeye.com/blog/executive-perspective/2015/09/the_new_route_toper.html + +* https://www.cisco.com/c/en/us/about/security-center/event-response/synful-knock.html + + +_version_: 1 +
+ +--- + +### Use of Cleartext Protocols +Leverage searches that detect cleartext network protocols that may leak credentials or should otherwise be encrypted. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Traffic +- **ATT&CK**: +- **Last Updated**: 2017-09-15 + +
+ details + +#### Detection Profile + +* [Protocols passing authentication in cleartext](detections.md#protocols-passing-authentication-in-cleartext) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Actions on Objectives + +* Reconnaissance + + +#### Reference + +* https://www.monkey.org/~dugsong/dsniff/ + + +_version_: 1 +
+ +--- + +
+ +## Cloud Security +
+ details + +### AWS Cross Account Activity +Track when a user assumes an IAM role in another AWS account to obtain cross-account access to services and resources in that account. Accessing new roles could be an indication of malicious activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1550](https://attack.mitre.org/techniques/T1550/) +- **Last Updated**: 2018-06-04 + +
+ details + +#### Detection Profile + +* [aws detect attach to role policy](detections.md#aws-detect-attach-to-role-policy) + +* [aws detect permanent key creation](detections.md#aws-detect-permanent-key-creation) + +* [aws detect role creation](detections.md#aws-detect-role-creation) + +* [aws detect sts assume role abuse](detections.md#aws-detect-sts-assume-role-abuse) + +* [aws detect sts get session token abuse](detections.md#aws-detect-sts-get-session-token-abuse) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1550 | Use Alternate Authentication Material | Defense Evasion, Lateral Movement | + +#### Kill Chain Phase + +* Lateral Movement + + +#### Reference + +* https://aws.amazon.com/blogs/security/aws-cloudtrail-now-tracks-cross-account-activity-to-its-origin/ + + +_version_: 1 +
+ +--- + +### AWS Cryptomining +Monitor your AWS EC2 instances for activities related to cryptojacking/cryptomining. New instances that originate from previously unseen regions, users who launch abnormally high numbers of instances, or EC2 instances started by previously unseen users are just a few examples of potentially malicious behavior. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/), [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-03-08 + +
+ details + +#### Detection Profile + +* [Abnormally High AWS Instances Launched by User](detections.md#abnormally-high-aws-instances-launched-by-user) + +* [Abnormally High AWS Instances Launched by User - MLTK](detections.md#abnormally-high-aws-instances-launched-by-user---mltk) + +* [EC2 Instance Started In Previously Unseen Region](detections.md#ec2-instance-started-in-previously-unseen-region) + +* [EC2 Instance Started With Previously Unseen AMI](detections.md#ec2-instance-started-with-previously-unseen-ami) + +* [EC2 Instance Started With Previously Unseen Instance Type](detections.md#ec2-instance-started-with-previously-unseen-instance-type) + +* [EC2 Instance Started With Previously Unseen User](detections.md#ec2-instance-started-with-previously-unseen-user) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### AWS Network ACL Activity +Monitor your AWS network infrastructure for bad configurations and malicious activity. Investigative searches help you probe deeper, when the facts warrant it. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2018-05-21 + +
+ details + +#### Detection Profile + +* [AWS Network Access Control List Created with All Open Ports](detections.md#aws-network-access-control-list-created-with-all-open-ports) + +* [AWS Network Access Control List Deleted](detections.md#aws-network-access-control-list-deleted) + +* [Detect Spike in Network ACL Activity](detections.md#detect-spike-in-network-acl-activity) + +* [Detect Spike in blocked Outbound Traffic from your AWS](detections.md#detect-spike-in-blocked-outbound-traffic-from-your-aws) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_NACLs.html + +* https://aws.amazon.com/blogs/security/how-to-help-prepare-for-ddos-attacks-by-reducing-your-attack-surface/ + + +_version_: 2 +
+ +--- + +### AWS Security Hub Alerts +This story is focused around detecting Security Hub alerts generated from AWS + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-08-04 + +
+ details + +#### Detection Profile + +* [Detect Spike in AWS Security Hub Alerts for EC2 Instance](detections.md#detect-spike-in-aws-security-hub-alerts-for-ec2-instance) + +* [Detect Spike in AWS Security Hub Alerts for User](detections.md#detect-spike-in-aws-security-hub-alerts-for-user) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + + +#### Reference + +* https://aws.amazon.com/security-hub/features/ + + +_version_: 1 +
+ +--- + +### AWS Suspicious Provisioning Activities +Monitor your AWS provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your network. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-03-16 + +
+ details + +#### Detection Profile + +* [AWS Cloud Provisioning From Previously Unseen City](detections.md#aws-cloud-provisioning-from-previously-unseen-city) + +* [AWS Cloud Provisioning From Previously Unseen Country](detections.md#aws-cloud-provisioning-from-previously-unseen-country) + +* [AWS Cloud Provisioning From Previously Unseen IP Address](detections.md#aws-cloud-provisioning-from-previously-unseen-ip-address) + +* [AWS Cloud Provisioning From Previously Unseen Region](detections.md#aws-cloud-provisioning-from-previously-unseen-region) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + +#### Kill Chain Phase + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### AWS User Monitoring +Detect and investigate dormant user accounts for your AWS environment that have become active again. Because inactive and ad-hoc accounts are common attack targets, it's critical to enable governance within your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2018-03-12 + +
+ details + +#### Detection Profile + +* [Detect API activity from users without MFA](detections.md#detect-api-activity-from-users-without-mfa) + +* [Detect AWS API Activities From Unapproved Accounts](detections.md#detect-aws-api-activities-from-unapproved-accounts) + +* [Detect Spike in AWS API Activity](detections.md#detect-spike-in-aws-api-activity) + +* [Detect Spike in Security Group Activity](detections.md#detect-spike-in-security-group-activity) + +* [Detect new API calls from user roles](detections.md#detect-new-api-calls-from-user-roles) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://redlock.io/blog/cryptojacking-tesla + + +_version_: 1 +
+ +--- + +### Cloud Cryptomining +Monitor your cloud compute instances for activities related to cryptojacking/cryptomining. New instances that originate from previously unseen regions, users who launch abnormally high numbers of instances, or compute instances started by previously unseen users are just a few examples of potentially malicious behavior. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/), [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2019-10-02 + +
+ details + +#### Detection Profile + +* [Abnormally High Number Of Cloud Instances Launched](detections.md#abnormally-high-number-of-cloud-instances-launched) + +* [Cloud Compute Instance Created By Previously Unseen User](detections.md#cloud-compute-instance-created-by-previously-unseen-user) + +* [Cloud Compute Instance Created In Previously Unused Region](detections.md#cloud-compute-instance-created-in-previously-unused-region) + +* [Cloud Compute Instance Created With Previously Unseen Image](detections.md#cloud-compute-instance-created-with-previously-unseen-image) + +* [Cloud Compute Instance Created With Previously Unseen Instance Type](detections.md#cloud-compute-instance-created-with-previously-unseen-instance-type) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### Cloud Federated Credential Abuse +This analytical story addresses events that indicate abuse of cloud federated credentials. These credentials are usually extracted from endpoint desktop or servers specially those servers that provide federation services such as Windows Active Directory Federation Services. Identity Federation relies on objects such as Oauth2 tokens, cookies or SAML assertions in order to provide seamless access between cloud and perimeter environments. If these objects are either hijacked or forged then attackers will be able to pivot into victim's cloud environements. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1003.001](https://attack.mitre.org/techniques/T1003.001/), [T1078](https://attack.mitre.org/techniques/T1078/), [T1136.003](https://attack.mitre.org/techniques/T1136.003/), [T1204.002](https://attack.mitre.org/techniques/T1204.002/), [T1546.012](https://attack.mitre.org/techniques/T1546.012/), [T1556](https://attack.mitre.org/techniques/T1556/) +- **Last Updated**: 2021-01-26 + +
+ details + +#### Detection Profile + +* [AWS SAML Access by Provider User and Principal](detections.md#aws-saml-access-by-provider-user-and-principal) + +* [AWS SAML Update identity provider](detections.md#aws-saml-update-identity-provider) + +* [Certutil exe certificate extraction](detections.md#certutil-exe-certificate-extraction) + +* [Detect Mimikatz Using Loaded Images](detections.md#detect-mimikatz-using-loaded-images) + +* [Detect Mimikatz Via PowerShell And EventCode 4703](detections.md#detect-mimikatz-via-powershell-and-eventcode-4703) + +* [Detect Rare Executables](detections.md#detect-rare-executables) + +* [O365 Add App Role Assignment Grant User](detections.md#o365-add-app-role-assignment-grant-user) + +* [O365 Added Service Principal](detections.md#o365-added-service-principal) + +* [O365 Excessive SSO logon errors](detections.md#o365-excessive-sso-logon-errors) + +* [O365 New Federated Domain Added](detections.md#o365-new-federated-domain-added) + +* [Registry Keys Used For Privilege Escalation](detections.md#registry-keys-used-for-privilege-escalation) + +* [Uncommon Processes On Endpoint](detections.md#uncommon-processes-on-endpoint) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1003.001 | LSASS Memory | Credential Access | +| T1136.003 | Cloud Account | Persistence | +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | +| T1546.012 | Image File Execution Options Injection | Persistence, Privilege Escalation | +| T1204.002 | Malicious File | Execution | + +#### Kill Chain Phase + +* Actions on Objective + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + + +_version_: 1 +
+ +--- + +### Container Implantation Monitoring and Investigation +Use the searches in this story to monitor your Kubernetes registry repositories for upload, and deployment of potentially vulnerable, backdoor, or implanted containers. These searches provide information on source users, destination path, container names and repository names. The searches provide context to address Mitre T1525 which refers to container implantation upload to a company's repository either in Amazon Elastic Container Registry, Google Container Registry and Azure Container Registry. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1525](https://attack.mitre.org/techniques/T1525/) +- **Last Updated**: 2020-02-20 + +
+ details + +#### Detection Profile + +* [GCP GCR container uploaded](detections.md#gcp-gcr-container-uploaded) + +* [New container uploaded to AWS ECR](detections.md#new-container-uploaded-to-aws-ecr) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1525 | Implant Container Image | Persistence | + +#### Kill Chain Phase + + +#### Reference + +* https://github.com/splunk/cloud-datamodel-security-research + + +_version_: 1 +
+ +--- + +### GCP Cross Account Activity +Track when a user assumes an IAM role in another GCP account to obtain cross-account access to services and resources in that account. Accessing new roles could be an indication of malicious activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2020-09-01 + +
+ details + +#### Detection Profile + +* [GCP Detect accounts with high risk roles by project](detections.md#gcp-detect-accounts-with-high-risk-roles-by-project) + +* [GCP Detect gcploit framework](detections.md#gcp-detect-gcploit-framework) + +* [GCP Detect high risk permissions by resource and account](detections.md#gcp-detect-high-risk-permissions-by-resource-and-account) + +* [gcp detect oauth token abuse](detections.md#gcp-detect-oauth-token-abuse) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Lateral Movement + + +#### Reference + +* https://cloud.google.com/iam/docs/understanding-service-accounts + + +_version_: 1 +
+ +--- + +### Kubernetes Scanning Activity +This story addresses detection against Kubernetes cluster fingerprint scan and attack by providing information on items such as source ip, user agent, cluster names. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1526](https://attack.mitre.org/techniques/T1526/) +- **Last Updated**: 2020-04-15 + +
+ details + +#### Detection Profile + +* [Amazon EKS Kubernetes Pod scan detection](detections.md#amazon-eks-kubernetes-pod-scan-detection) + +* [Amazon EKS Kubernetes cluster scan detection](detections.md#amazon-eks-kubernetes-cluster-scan-detection) + +* [GCP Kubernetes cluster pod scan detection](detections.md#gcp-kubernetes-cluster-pod-scan-detection) + +* [GCP Kubernetes cluster scan detection](detections.md#gcp-kubernetes-cluster-scan-detection) + +* [Kubernetes Azure pod scan fingerprint](detections.md#kubernetes-azure-pod-scan-fingerprint) + +* [Kubernetes Azure scan fingerprint](detections.md#kubernetes-azure-scan-fingerprint) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1526 | Cloud Service Discovery | Discovery | + +#### Kill Chain Phase + +* Reconnaissance + + +#### Reference + +* https://github.com/splunk/cloud-datamodel-security-research + + +_version_: 1 +
+ +--- + +### Kubernetes Sensitive Object Access Activity +This story addresses detection and response of accounts acccesing Kubernetes cluster sensitive objects such as configmaps or secrets providing information on items such as user user, group. object, namespace and authorization reason. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Detection Profile + +* [AWS EKS Kubernetes cluster sensitive object access](detections.md#aws-eks-kubernetes-cluster-sensitive-object-access) + +* [Kubernetes AWS detect service accounts forbidden failure access](detections.md#kubernetes-aws-detect-service-accounts-forbidden-failure-access) + +* [Kubernetes AWS detect suspicious kubectl calls](detections.md#kubernetes-aws-detect-suspicious-kubectl-calls) + +* [Kubernetes Azure detect sensitive object access](detections.md#kubernetes-azure-detect-sensitive-object-access) + +* [Kubernetes Azure detect service accounts forbidden failure access](detections.md#kubernetes-azure-detect-service-accounts-forbidden-failure-access) + +* [Kubernetes Azure detect suspicious kubectl calls](detections.md#kubernetes-azure-detect-suspicious-kubectl-calls) + +* [Kubernetes GCP detect sensitive object access](detections.md#kubernetes-gcp-detect-sensitive-object-access) + +* [Kubernetes GCP detect service accounts forbidden failure access](detections.md#kubernetes-gcp-detect-service-accounts-forbidden-failure-access) + +* [Kubernetes GCP detect suspicious kubectl calls](detections.md#kubernetes-gcp-detect-suspicious-kubectl-calls) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Lateral Movement + + +#### Reference + +* https://www.splunk.com/en_us/blog/security/approaching-kubernetes-security-detecting-kubernetes-scan-with-splunk.html + + +_version_: 1 +
+ +--- + +### Kubernetes Sensitive Role Activity +This story addresses detection and response around Sensitive Role usage within a Kubernetes clusters against cluster resources and namespaces. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2020-05-20 + +
+ details + +#### Detection Profile + +* [Kubernetes AWS detect RBAC authorization by account](detections.md#kubernetes-aws-detect-rbac-authorization-by-account) + +* [Kubernetes AWS detect most active service accounts by pod](detections.md#kubernetes-aws-detect-most-active-service-accounts-by-pod) + +* [Kubernetes AWS detect sensitive role access](detections.md#kubernetes-aws-detect-sensitive-role-access) + +* [Kubernetes Azure detect RBAC authorization by account](detections.md#kubernetes-azure-detect-rbac-authorization-by-account) + +* [Kubernetes Azure detect most active service accounts by pod namespace](detections.md#kubernetes-azure-detect-most-active-service-accounts-by-pod-namespace) + +* [Kubernetes Azure detect sensitive role access](detections.md#kubernetes-azure-detect-sensitive-role-access) + +* [Kubernetes GCP detect RBAC authorizations by account](detections.md#kubernetes-gcp-detect-rbac-authorizations-by-account) + +* [Kubernetes GCP detect most active service accounts by pod](detections.md#kubernetes-gcp-detect-most-active-service-accounts-by-pod) + +* [Kubernetes GCP detect sensitive role access](detections.md#kubernetes-gcp-detect-sensitive-role-access) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Lateral Movement + + +#### Reference + +* https://www.splunk.com/en_us/blog/security/approaching-kubernetes-security-detecting-kubernetes-scan-with-splunk.html + + +_version_: 1 +
+ +--- + +### Office 365 Detections +This story is focused around detecting Office 365 Attacks. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1110](https://attack.mitre.org/techniques/T1110/), [T1110.001](https://attack.mitre.org/techniques/T1110.001/), [T1114](https://attack.mitre.org/techniques/T1114/), [T1114.002](https://attack.mitre.org/techniques/T1114.002/), [T1114.003](https://attack.mitre.org/techniques/T1114.003/), [T1136.003](https://attack.mitre.org/techniques/T1136.003/), [T1556](https://attack.mitre.org/techniques/T1556/), [T1562.007](https://attack.mitre.org/techniques/T1562.007/) +- **Last Updated**: 2020-12-16 + +
+ details + +#### Detection Profile + +* [High Number of Login Failures from a single source](detections.md#high-number-of-login-failures-from-a-single-source) + +* [O365 Add App Role Assignment Grant User](detections.md#o365-add-app-role-assignment-grant-user) + +* [O365 Added Service Principal](detections.md#o365-added-service-principal) + +* [O365 Bypass MFA via Trusted IP](detections.md#o365-bypass-mfa-via-trusted-ip) + +* [O365 Disable MFA](detections.md#o365-disable-mfa) + +* [O365 Excessive Authentication Failures Alert](detections.md#o365-excessive-authentication-failures-alert) + +* [O365 Excessive SSO logon errors](detections.md#o365-excessive-sso-logon-errors) + +* [O365 New Federated Domain Added](detections.md#o365-new-federated-domain-added) + +* [O365 PST export alert](detections.md#o365-pst-export-alert) + +* [O365 Suspicious Admin Email Forwarding](detections.md#o365-suspicious-admin-email-forwarding) + +* [O365 Suspicious Rights Delegation](detections.md#o365-suspicious-rights-delegation) + +* [O365 Suspicious User Email Forwarding](detections.md#o365-suspicious-user-email-forwarding) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1110.001 | Password Guessing | Credential Access | +| T1136.003 | Cloud Account | Persistence | +| T1562.007 | Disable or Modify Cloud Firewall | Defense Evasion | +| T1556 | Modify Authentication Process | Credential Access, Defense Evasion | +| T1110 | Brute Force | Credential Access | +| T1114 | Email Collection | Collection | +| T1114.003 | Email Forwarding Rule | Collection | +| T1114.002 | Remote Email Collection | Collection | + +#### Kill Chain Phase + +* Actions on Objective + +* Actions on Objectives + +* Not Applicable + + +#### Reference + +* https://i.blackhat.com/USA-20/Thursday/us-20-Bienstock-My-Cloud-Is-APTs-Cloud-Investigating-And-Defending-Office-365.pdf + + +_version_: 1 +
+ +--- + +### Suspicious AWS EC2 Activities +Use the searches in this Analytic Story to monitor your AWS EC2 instances for evidence of anomalous activity and suspicious behaviors, such as EC2 instances that originate from unusual locations or those launched by previously unseen users (among others). Included investigative searches will help you probe more deeply, when the information warrants it. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/), [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2018-02-09 + +
+ details + +#### Detection Profile + +* [Abnormally High AWS Instances Launched by User](detections.md#abnormally-high-aws-instances-launched-by-user) + +* [Abnormally High AWS Instances Launched by User - MLTK](detections.md#abnormally-high-aws-instances-launched-by-user---mltk) + +* [Abnormally High AWS Instances Terminated by User](detections.md#abnormally-high-aws-instances-terminated-by-user) + +* [Abnormally High AWS Instances Terminated by User - MLTK](detections.md#abnormally-high-aws-instances-terminated-by-user---mltk) + +* [EC2 Instance Started In Previously Unseen Region](detections.md#ec2-instance-started-in-previously-unseen-region) + +* [EC2 Instance Started With Previously Unseen User](detections.md#ec2-instance-started-with-previously-unseen-user) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### Suspicious AWS Login Activities +Monitor your AWS authentication events using your CloudTrail logs. Searches within this Analytic Story will help you stay aware of and investigate suspicious logins. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/), [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2019-05-01 + +
+ details + +#### Detection Profile + +* [Detect AWS Console Login by User from New City](detections.md#detect-aws-console-login-by-user-from-new-city) + +* [Detect AWS Console Login by User from New Country](detections.md#detect-aws-console-login-by-user-from-new-country) + +* [Detect AWS Console Login by User from New Region](detections.md#detect-aws-console-login-by-user-from-new-region) + +* [Detect new user AWS Console Login](detections.md#detect-new-user-aws-console-login) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html + + +_version_: 1 +
+ +--- + +### Suspicious AWS S3 Activities +Use the searches in this Analytic Story to monitor your AWS S3 buckets for evidence of anomalous activity and suspicious behaviors, such as detecting open S3 buckets and buckets being accessed from a new IP. The contextual and investigative searches will give you more information, when required. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2018-07-24 + +
+ details + +#### Detection Profile + +* [Detect New Open S3 Buckets over AWS CLI](detections.md#detect-new-open-s3-buckets-over-aws-cli) + +* [Detect New Open S3 buckets](detections.md#detect-new-open-s3-buckets) + +* [Detect S3 access from a new IP](detections.md#detect-s3-access-from-a-new-ip) + +* [Detect Spike in S3 Bucket deletion](detections.md#detect-spike-in-s3-bucket-deletion) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://www.tripwire.com/state-of-security/security-data-protection/cloud/public-aws-s3-buckets-writable/ + + +_version_: 2 +
+ +--- + +### Suspicious AWS Traffic +Leverage these searches to monitor your AWS network traffic for evidence of anomalous activity and suspicious behaviors, such as a spike in blocked outbound traffic in your virtual private cloud (VPC). + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-05-07 + +
+ details + +#### Detection Profile + +* [Detect Spike in blocked Outbound Traffic from your AWS](detections.md#detect-spike-in-blocked-outbound-traffic-from-your-aws) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://rhinosecuritylabs.com/aws/hiding-cloudcobalt-strike-beacon-c2-using-amazon-apis/ + + +_version_: 1 +
+ +--- + +### Suspicious Cloud Authentication Activities +Monitor your cloud authentication events. Searches within this Analytic Story leverage the recent cloud updates to the Authentication data model to help you stay aware of and investigate suspicious login activity. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Authentication +- **ATT&CK**: [T1535](https://attack.mitre.org/techniques/T1535/) +- **Last Updated**: 2020-06-04 + +
+ details + +#### Detection Profile + +* [AWS Cross Account Activity From Previously Unseen Account](detections.md#aws-cross-account-activity-from-previously-unseen-account) + +* [Detect AWS Console Login by New User](detections.md#detect-aws-console-login-by-new-user) + +* [Detect AWS Console Login by User from New City](detections.md#detect-aws-console-login-by-user-from-new-city) + +* [Detect AWS Console Login by User from New Country](detections.md#detect-aws-console-login-by-user-from-new-country) + +* [Detect AWS Console Login by User from New Region](detections.md#detect-aws-console-login-by-user-from-new-region) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1535 | Unused/Unsupported Cloud Regions | Defense Evasion | +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://aws.amazon.com/blogs/security/aws-cloudtrail-now-tracks-cross-account-activity-to-its-origin/ + +* https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html + + +_version_: 1 +
+ +--- + +### Suspicious Cloud Instance Activities +Monitor your cloud infrastructure provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your cloud environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-08-25 + +
+ details + +#### Detection Profile + +* [Abnormally High Number Of Cloud Instances Destroyed](detections.md#abnormally-high-number-of-cloud-instances-destroyed) + +* [Abnormally High Number Of Cloud Instances Launched](detections.md#abnormally-high-number-of-cloud-instances-launched) + +* [Cloud Instance Modified By Previously Unseen User](detections.md#cloud-instance-modified-by-previously-unseen-user) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### Suspicious Cloud Provisioning Activities +Monitor your cloud infrastructure provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your cloud environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/) +- **Last Updated**: 2018-08-20 + +
+ details + +#### Detection Profile + +* [Cloud Provisioning Activity From Previously Unseen City](detections.md#cloud-provisioning-activity-from-previously-unseen-city) + +* [Cloud Provisioning Activity From Previously Unseen Country](detections.md#cloud-provisioning-activity-from-previously-unseen-country) + +* [Cloud Provisioning Activity From Previously Unseen IP Address](detections.md#cloud-provisioning-activity-from-previously-unseen-ip-address) + +* [Cloud Provisioning Activity From Previously Unseen Region](detections.md#cloud-provisioning-activity-from-previously-unseen-region) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +### Suspicious Cloud User Activities +Detect and investigate suspicious activities by users and roles in your cloud environments. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Change +- **ATT&CK**: [T1078](https://attack.mitre.org/techniques/T1078/), [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2020-09-04 + +
+ details + +#### Detection Profile + +* [Abnormally High Number Of Cloud Infrastructure API Calls](detections.md#abnormally-high-number-of-cloud-infrastructure-api-calls) + +* [Abnormally High Number Of Cloud Security Group API Calls](detections.md#abnormally-high-number-of-cloud-security-group-api-calls) + +* [Cloud API Calls From Previously Unseen User Roles](detections.md#cloud-api-calls-from-previously-unseen-user-roles) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | +| T1078 | Valid Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://redlock.io/blog/cryptojacking-tesla + + +_version_: 1 +
+ +--- + +### Suspicious GCP Storage Activities +Use the searches in this Analytic Story to monitor your GCP Storage buckets for evidence of anomalous activity and suspicious behaviors, such as detecting open storage buckets and buckets being accessed from a new IP. The contextual and investigative searches will give you more information, when required. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1530](https://attack.mitre.org/techniques/T1530/) +- **Last Updated**: 2020-08-05 + +
+ details + +#### Detection Profile + +* [Detect GCP Storage access from a new IP](detections.md#detect-gcp-storage-access-from-a-new-ip) + +* [Detect New Open GCP Storage Buckets](detections.md#detect-new-open-gcp-storage-buckets) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1530 | Data from Cloud Storage Object | Collection | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://cloud.google.com/blog/product/gcp/4-steps-for-hardening-your-cloud-storage-buckets-taking-charge-of-your-security + +* https://rhinosecuritylabs.com/gcp/google-cloud-platform-gcp-bucket-enumeration/ + + +_version_: 1 +
+ +--- + +### Unusual AWS EC2 Modifications +Identify unusual changes to your AWS EC2 instances that may indicate malicious activity. Modifications to your EC2 instances by previously unseen users is an example of an activity that may warrant further investigation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1078.004](https://attack.mitre.org/techniques/T1078.004/) +- **Last Updated**: 2018-04-09 + +
+ details + +#### Detection Profile + +* [EC2 Instance Modified With Previously Unseen User](detections.md#ec2-instance-modified-with-previously-unseen-user) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1078.004 | Cloud Accounts | Defense Evasion, Initial Access, Persistence, Privilege Escalation | + +#### Kill Chain Phase + + +#### Reference + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +_version_: 1 +
+ +--- + +
+ +## Malware +
+ details + +### ColdRoot MacOS RAT +Leverage searches that allow you to detect and investigate unusual activities that relate to the ColdRoot Remote Access Trojan that affects MacOS. An example of some of these activities are changing sensative binaries in the MacOS sub-system, detecting process names and executables associated with the RAT, detecting when a keyboard tab is installed on a MacOS machine and more. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2019-01-09 + +
+ details + +#### Detection Profile + +* [Osquery pack - ColdRoot detection](detections.md#osquery-pack---coldroot-detection) + +* [Processes Tapping Keyboard Events](detections.md#processes-tapping-keyboard-events) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Command and Control + +* Installation + + +#### Reference + +* https://www.intego.com/mac-security-blog/osxcoldroot-and-the-rat-invasion/ + +* https://objective-see.com/blog/blog_0x2A.html + +* https://www.bleepingcomputer.com/news/security/coldroot-rat-still-undetectable-despite-being-uploaded-on-github-two-years-ago/ + + +_version_: 1 +
+ +--- + +### DHS Report TA18-074A +Monitor for suspicious activities associated with DHS Technical Alert US-CERT TA18-074A. Some of the activities that adversaries used in these compromises included spearfishing attacks, malware, watering-hole domains, many and more. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1053.005](https://attack.mitre.org/techniques/T1053.005/), [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1071.002](https://attack.mitre.org/techniques/T1071.002/), [T1112](https://attack.mitre.org/techniques/T1112/), [T1136.001](https://attack.mitre.org/techniques/T1136.001/), [T1204.002](https://attack.mitre.org/techniques/T1204.002/), [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/), [T1562.004](https://attack.mitre.org/techniques/T1562.004/) +- **Last Updated**: 2020-01-22 + +
+ details + +#### Detection Profile + +* [Create local admin accounts using net exe](detections.md#create-local-admin-accounts-using-net-exe) + +* [Detect New Local Admin account](detections.md#detect-new-local-admin-account) + +* [Detect Outbound SMB Traffic](detections.md#detect-outbound-smb-traffic) + +* [Detect PsExec With accepteula Flag](detections.md#detect-psexec-with-accepteula-flag) + +* [First time seen command line argument](detections.md#first-time-seen-command-line-argument) + +* [Malicious PowerShell Process - Execution Policy Bypass](detections.md#malicious-powershell-process---execution-policy-bypass) + +* [Processes launching netsh](detections.md#processes-launching-netsh) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [SMB Traffic Spike](detections.md#smb-traffic-spike) + +* [SMB Traffic Spike - MLTK](detections.md#smb-traffic-spike---mltk) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + +* [Scheduled Task Deleted Or Created via CMD](detections.md#scheduled-task-deleted-or-created-via-cmd) + +* [Single Letter Process On Endpoint](detections.md#single-letter-process-on-endpoint) + +* [Suspicious Reg exe Process](detections.md#suspicious-reg-exe-process) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1136.001 | Local Account | Persistence | +| T1071.002 | File Transfer Protocols | Command and Control | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | +| T1562.004 | Disable or Modify System Firewall | Defense Evasion | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | +| T1204.002 | Malicious File | Execution | +| T1112 | Modify Registry | Defense Evasion | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.us-cert.gov/ncas/alerts/TA18-074A + + +_version_: 2 +
+ +--- + +### Dynamic DNS +Detect and investigate hosts in your environment that may be communicating with dynamic domain providers. Attackers may leverage these services to help them avoid firewall blocks and deny lists. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Network_Resolution, Web +- **ATT&CK**: [T1071.001](https://attack.mitre.org/techniques/T1071.001/), [T1189](https://attack.mitre.org/techniques/T1189/) +- **Last Updated**: 2018-09-06 + +
+ details + +#### Detection Profile + +* [Detect hosts connecting to dynamic domain providers](detections.md#detect-hosts-connecting-to-dynamic-domain-providers) + +* [Detect web traffic to dynamic domain providers](detections.md#detect-web-traffic-to-dynamic-domain-providers) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1189 | Drive-by Compromise | Initial Access | +| T1071.001 | Web Protocols | Command and Control | +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2017/09/apt33-insights-into-iranian-cyber-espionage.html + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + +* http://www.noip.com/blog/2014/07/11/dynamic-dns-can-use-2/ + +* https://www.splunk.com/blog/2015/08/04/detecting-dynamic-dns-domains-in-splunk.html + + +_version_: 2 +
+ +--- + +### Emotet Malware DHS Report TA18-201A +Detect rarely used executables, specific registry paths that may confer malware survivability and persistence, instances where cmd.exe is used to launch script interpreters, and other indicators that the Emotet financial malware has compromised your environment. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Email, Endpoint, Network_Traffic +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1072](https://attack.mitre.org/techniques/T1072/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/), [T1566.001](https://attack.mitre.org/techniques/T1566.001/) +- **Last Updated**: 2020-01-27 + +
+ details + +#### Detection Profile + +* [Detect Rare Executables](detections.md#detect-rare-executables) + +* [Detect Use of cmd exe to Launch Script Interpreters](detections.md#detect-use-of-cmd-exe-to-launch-script-interpreters) + +* [Detection of tools built by NirSoft](detections.md#detection-of-tools-built-by-nirsoft) + +* [Email Attachments With Lots Of Spaces](detections.md#email-attachments-with-lots-of-spaces) + +* [Prohibited Software On Endpoint](detections.md#prohibited-software-on-endpoint) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [SMB Traffic Spike](detections.md#smb-traffic-spike) + +* [SMB Traffic Spike - MLTK](detections.md#smb-traffic-spike---mltk) + +* [Suspicious Email Attachment Extensions](detections.md#suspicious-email-attachment-extensions) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1059.003 | Windows Command Shell | Execution | +| T1072 | Software Deployment Tools | Execution, Lateral Movement | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1566.001 | Spearphishing Attachment | Initial Access | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Delivery + +* Exploitation + +* Installation + + +#### Reference + +* https://www.us-cert.gov/ncas/alerts/TA18-201A + +* https://www.first.org/resources/papers/conf2017/Advanced-Incident-Detection-and-Threat-Hunting-using-Sysmon-and-Splunk.pdf + +* https://www.vkremez.com/2017/05/emotet-banking-trojan-malware-analysis.html + + +_version_: 1 +
+ +--- + +### Hidden Cobra Malware +Monitor for and investigate activities, including the creation or deletion of hidden shares and file writes, that may be evidence of infiltration by North Korean government-sponsored cybercriminals. Details of this activity were reported in DHS Report TA-18-149A. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Resolution, Network_Traffic +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/), [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1048.003](https://attack.mitre.org/techniques/T1048.003/), [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1070.005](https://attack.mitre.org/techniques/T1070.005/), [T1071.002](https://attack.mitre.org/techniques/T1071.002/), [T1071.004](https://attack.mitre.org/techniques/T1071.004/) +- **Last Updated**: 2020-01-22 + +
+ details + +#### Detection Profile + +* [Create or delete windows shares using net exe](detections.md#create-or-delete-windows-shares-using-net-exe) + +* [DNS Query Length Outliers - MLTK](detections.md#dns-query-length-outliers---mltk) + +* [DNS Query Length With High Standard Deviation](detections.md#dns-query-length-with-high-standard-deviation) + +* [Detect Outbound SMB Traffic](detections.md#detect-outbound-smb-traffic) + +* [First time seen command line argument](detections.md#first-time-seen-command-line-argument) + +* [Remote Desktop Network Traffic](detections.md#remote-desktop-network-traffic) + +* [Remote Desktop Process Running On System](detections.md#remote-desktop-process-running-on-system) + +* [SMB Traffic Spike](detections.md#smb-traffic-spike) + +* [SMB Traffic Spike - MLTK](detections.md#smb-traffic-spike---mltk) + +* [Suspicious File Write](detections.md#suspicious-file-write) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1070.005 | Network Share Connection Removal | Defense Evasion | +| T1071.004 | DNS | Command and Control | +| T1048.003 | Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol | Exfiltration | +| T1071.002 | File Transfer Protocols | Command and Control | +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | +| T1021.001 | Remote Desktop Protocol | Lateral Movement | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + + +#### Reference + +* https://www.us-cert.gov/HIDDEN-COBRA-North-Korean-Malicious-Cyber-Activity + +* https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf + + +_version_: 2 +
+ +--- + +### Orangeworm Attack Group +Detect activities and various techniques associated with the Orangeworm Attack Group, a group that frequently targets the healthcare industry. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1059.001](https://attack.mitre.org/techniques/T1059.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1569.002](https://attack.mitre.org/techniques/T1569.002/) +- **Last Updated**: 2020-01-22 + +
+ details + +#### Detection Profile + +* [First Time Seen Running Windows Service](detections.md#first-time-seen-running-windows-service) + +* [First time seen command line argument](detections.md#first-time-seen-command-line-argument) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1569.002 | Service Execution | Execution | +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | +| T1574.011 | Services Registry Permissions Weakness | Defense Evasion, Persistence, Privilege Escalation | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.symantec.com/blogs/threat-intelligence/orangeworm-targets-healthcare-us-europe-asia + +* https://www.infosecurity-magazine.com/news/healthcare-targeted-by-hacker/ + + +_version_: 2 +
+ +--- + +### Ransomware +Leverage searches that allow you to detect and investigate unusual activities that might relate to ransomware--spikes in SMB traffic, suspicious wevtutil usage, the presence of common ransomware extensions, and system processes run from unexpected locations, and many others. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic +- **ATT&CK**: [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1047](https://attack.mitre.org/techniques/T1047/), [T1048](https://attack.mitre.org/techniques/T1048/), [T1053.005](https://attack.mitre.org/techniques/T1053.005/), [T1070](https://attack.mitre.org/techniques/T1070/), [T1070.001](https://attack.mitre.org/techniques/T1070.001/), [T1071.001](https://attack.mitre.org/techniques/T1071.001/), [T1485](https://attack.mitre.org/techniques/T1485/), [T1490](https://attack.mitre.org/techniques/T1490/), [T1547.001](https://attack.mitre.org/techniques/T1547.001/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [BCDEdit Failure Recovery Modification](detections.md#bcdedit-failure-recovery-modification) + +* [Common Ransomware Extensions](detections.md#common-ransomware-extensions) + +* [Common Ransomware Notes](detections.md#common-ransomware-notes) + +* [Deleting Shadow Copies](detections.md#deleting-shadow-copies) + +* [Prohibited Network Traffic Allowed](detections.md#prohibited-network-traffic-allowed) + +* [Registry Keys Used For Persistence](detections.md#registry-keys-used-for-persistence) + +* [Remote Process Instantiation via WMI](detections.md#remote-process-instantiation-via-wmi) + +* [SMB Traffic Spike](detections.md#smb-traffic-spike) + +* [SMB Traffic Spike - MLTK](detections.md#smb-traffic-spike---mltk) + +* [Scheduled tasks used in BadRabbit ransomware](detections.md#scheduled-tasks-used-in-badrabbit-ransomware) + +* [Schtasks used for forcing a reboot](detections.md#schtasks-used-for-forcing-a-reboot) + +* [Spike in File Writes](detections.md#spike-in-file-writes) + +* [Suspicious wevtutil Usage](detections.md#suspicious-wevtutil-usage) + +* [System Processes Run From Unexpected Locations](detections.md#system-processes-run-from-unexpected-locations) + +* [TOR Traffic](detections.md#tor-traffic) + +* [USN Journal Deletion](detections.md#usn-journal-deletion) + +* [Unusually Long Command Line](detections.md#unusually-long-command-line) + +* [Unusually Long Command Line - MLTK](detections.md#unusually-long-command-line---mltk) + +* [WBAdmin Delete System Backups](detections.md#wbadmin-delete-system-backups) + +* [Windows Event Log Cleared](detections.md#windows-event-log-cleared) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | +| T1485 | Data Destruction | Impact | +| T1482 | Domain Trust Discovery | Discovery | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1021.001 | Remote Desktop Protocol | Lateral Movement | +| T1047 | Windows Management Instrumentation | Execution | +| T1486 | Data Encrypted for Impact | Impact | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | +| T1070.001 | Clear Windows Event Logs | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | +| T1071.001 | Web Protocols | Command and Control | +| T1070 | Indicator Removal on Host | Defense Evasion | +| T1562.001 | Disable or Modify Tools | Defense Evasion | +| T1489 | Service Stop | Impact | +| T1059.003 | Windows Command Shell | Execution | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Delivery + + +#### Reference + +* https://www.carbonblack.com/2017/06/28/carbon-black-threat-research-technical-analysis-petya-notpetya-ransomware/ + +* https://www.splunk.com/blog/2017/06/27/closing-the-detection-to-mitigation-gap-or-to-petya-or-notpetya-whocares-.html + + +_version_: 1 +
+ +--- + +### Ransomware Cloud +Leverage searches that allow you to detect and investigate unusual activities that might relate to ransomware. These searches include cloud related objects that may be targeted by malicious actors via cloud providers own encryption features. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: [T1486](https://attack.mitre.org/techniques/T1486/) +- **Last Updated**: 2020-10-27 + +
+ details + +#### Detection Profile + +* [AWS Detect Users creating keys with encrypt policy without MFA](detections.md#aws-detect-users-creating-keys-with-encrypt-policy-without-mfa) + +* [AWS Detect Users with KMS keys performing encryption S3](detections.md#aws-detect-users-with-kms-keys-performing-encryption-s3) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1486 | Data Encrypted for Impact | Impact | + +#### Kill Chain Phase + + +#### Reference + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +_version_: 1 +
+ +--- + +### Ryuk Ransomware +Leverage searches that allow you to detect and investigate unusual activities that might relate to the Ryuk ransomware, including looking for file writes associated with Ryuk, Stopping Security Access Manager, DisableAntiSpyware registry key modification, suspicious psexec use, and more. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/), [T1059.003](https://attack.mitre.org/techniques/T1059.003/), [T1482](https://attack.mitre.org/techniques/T1482/), [T1485](https://attack.mitre.org/techniques/T1485/), [T1486](https://attack.mitre.org/techniques/T1486/), [T1489](https://attack.mitre.org/techniques/T1489/), [T1490](https://attack.mitre.org/techniques/T1490/), [T1562.001](https://attack.mitre.org/techniques/T1562.001/) +- **Last Updated**: 2020-11-06 + +
+ details + +#### Detection Profile + +* [BCDEdit Failure Recovery Modification](detections.md#bcdedit-failure-recovery-modification) + +* [Common Ransomware Notes](detections.md#common-ransomware-notes) + +* [NLTest Domain Trust Discovery](detections.md#nltest-domain-trust-discovery) + +* [Remote Desktop Network Bruteforce](detections.md#remote-desktop-network-bruteforce) + +* [Remote Desktop Network Traffic](detections.md#remote-desktop-network-traffic) + +* [Ryuk Test Files Detected](detections.md#ryuk-test-files-detected) + +* [Spike in File Writes](detections.md#spike-in-file-writes) + +* [WBAdmin Delete System Backups](detections.md#wbadmin-delete-system-backups) + +* [Windows DisableAntiSpyware Registry](detections.md#windows-disableantispyware-registry) + +* [Windows Security Account Manager Stopped](detections.md#windows-security-account-manager-stopped) + +* [Windows connhost exe started forcefully](detections.md#windows-connhost-exe-started-forcefully) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1490 | Inhibit System Recovery | Impact | +| T1485 | Data Destruction | Impact | +| T1482 | Domain Trust Discovery | Discovery | +| T1048 | Exfiltration Over Alternative Protocol | Exfiltration | +| T1547.001 | Registry Run Keys / Startup Folder | Persistence, Privilege Escalation | +| T1021.001 | Remote Desktop Protocol | Lateral Movement | +| T1047 | Windows Management Instrumentation | Execution | +| T1486 | Data Encrypted for Impact | Impact | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1053.005 | Scheduled Task | Execution, Persistence, Privilege Escalation | +| T1070.001 | Clear Windows Event Logs | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | +| T1071.001 | Web Protocols | Command and Control | +| T1070 | Indicator Removal on Host | Defense Evasion | +| T1562.001 | Disable or Modify Tools | Defense Evasion | +| T1489 | Service Stop | Impact | +| T1059.003 | Windows Command Shell | Execution | + +#### Kill Chain Phase + +* Actions on Objectives + +* Delivery + +* Exploitation + +* Reconnaissance + + +#### Reference + +* https://www.splunk.com/en_us/blog/security/detecting-ryuk-using-splunk-attack-range.html + +* https://www.crowdstrike.com/blog/big-game-hunting-with-ryuk-another-lucrative-targeted-ransomware/ + +* https://us-cert.cisa.gov/ncas/alerts/aa20-302a + + +_version_: 1 +
+ +--- + +### SamSam Ransomware +Leverage searches that allow you to detect and investigate unusual activities that might relate to the SamSam ransomware, including looking for file writes associated with SamSam, RDP brute force attacks, the presence of files with SamSam ransomware extensions, suspicious psexec use, and more. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint, Network_Traffic, Web +- **ATT&CK**: [T1021.001](https://attack.mitre.org/techniques/T1021.001/), [T1021.002](https://attack.mitre.org/techniques/T1021.002/), [T1082](https://attack.mitre.org/techniques/T1082/), [T1204.002](https://attack.mitre.org/techniques/T1204.002/), [T1485](https://attack.mitre.org/techniques/T1485/), [T1486](https://attack.mitre.org/techniques/T1486/), [T1490](https://attack.mitre.org/techniques/T1490/) +- **Last Updated**: 2018-12-13 + +
+ details + +#### Detection Profile + +* [Batch File Write to System32](detections.md#batch-file-write-to-system32) + +* [Common Ransomware Extensions](detections.md#common-ransomware-extensions) + +* [Common Ransomware Notes](detections.md#common-ransomware-notes) + +* [Deleting Shadow Copies](detections.md#deleting-shadow-copies) + +* [Detect PsExec With accepteula Flag](detections.md#detect-psexec-with-accepteula-flag) + +* [Detect attackers scanning for vulnerable JBoss servers](detections.md#detect-attackers-scanning-for-vulnerable-jboss-servers) + +* [Detect malicious requests to exploit JBoss servers](detections.md#detect-malicious-requests-to-exploit-jboss-servers) + +* [File with Samsam Extension](detections.md#file-with-samsam-extension) + +* [Prohibited Software On Endpoint](detections.md#prohibited-software-on-endpoint) + +* [Remote Desktop Network Bruteforce](detections.md#remote-desktop-network-bruteforce) + +* [Remote Desktop Network Traffic](detections.md#remote-desktop-network-traffic) + +* [Samsam Test File Write](detections.md#samsam-test-file-write) + +* [Spike in File Writes](detections.md#spike-in-file-writes) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1204.002 | Malicious File | Execution | +| T1485 | Data Destruction | Impact | +| T1490 | Inhibit System Recovery | Impact | +| T1021.002 | SMB/Windows Admin Shares | Lateral Movement | +| T1082 | System Information Discovery | Discovery | +| T1021.001 | Remote Desktop Protocol | Lateral Movement | +| T1486 | Data Encrypted for Impact | Impact | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Delivery + +* Installation + +* Reconnaissance + + +#### Reference + +* https://www.crowdstrike.com/blog/an-in-depth-analysis-of-samsam-ransomware-and-boss-spider/ + +* https://nakedsecurity.sophos.com/2018/07/31/samsam-the-almost-6-million-ransomware/ + +* https://thehackernews.com/2018/07/samsam-ransomware-attacks.html + + +_version_: 1 +
+ +--- + +### Unusual Processes +Quickly identify systems running new or unusual processes in your environment that could be indicators of suspicious activity. Processes run from unusual locations, those with conspicuously long command lines, and rare executables are all examples of activities that may warrant deeper investigation. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1016](https://attack.mitre.org/techniques/T1016/), [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1204.002](https://attack.mitre.org/techniques/T1204.002/), [T1218.011](https://attack.mitre.org/techniques/T1218.011/) +- **Last Updated**: 2020-02-04 + +
+ details + +#### Detection Profile + +* [Detect Rare Executables](detections.md#detect-rare-executables) + +* [Detect processes used for System Network Configuration Discovery](detections.md#detect-processes-used-for-system-network-configuration-discovery) + +* [RunDLL Loading DLL By Ordinal](detections.md#rundll-loading-dll-by-ordinal) + +* [System Processes Run From Unexpected Locations](detections.md#system-processes-run-from-unexpected-locations) + +* [Uncommon Processes On Endpoint](detections.md#uncommon-processes-on-endpoint) + +* [Unusually Long Command Line](detections.md#unusually-long-command-line) + +* [Unusually Long Command Line - MLTK](detections.md#unusually-long-command-line---mltk) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1016 | System Network Configuration Discovery | Discovery | +| T1218.011 | Rundll32 | Defense Evasion | +| T1036.003 | Rename System Utilities | Defense Evasion | +| T1204.002 | Malicious File | Execution | + +#### Kill Chain Phase + +* Actions on Objectives + +* Command and Control + +* Installation + + +#### Reference + +* https://www.fireeye.com/blog/threat-research/2017/08/monitoring-windows-console-activity-part-two.html + +* https://www.splunk.com/pdfs/technical-briefs/advanced-threat-detection-and-response-tech-brief.pdf + +* https://www.sans.org/reading-room/whitepapers/logging/detecting-security-incidents-windows-workstation-event-logs-34262 + + +_version_: 2 +
+ +--- + +### Windows File Extension and Association Abuse +Detect and investigate suspected abuse of file extensions and Windows file associations. Some of the malicious behaviors involved may include inserting spaces before file extensions or prepending the file extension with a different one, among other techniques. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1036.003](https://attack.mitre.org/techniques/T1036.003/), [T1546.001](https://attack.mitre.org/techniques/T1546.001/) +- **Last Updated**: 2018-01-26 + +
+ details + +#### Detection Profile + +* [Execution of File With Spaces Before Extension](detections.md#execution-of-file-with-spaces-before-extension) + +* [Execution of File with Multiple Extensions](detections.md#execution-of-file-with-multiple-extensions) + +* [Suspicious Changes to File Associations](detections.md#suspicious-changes-to-file-associations) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1036.003 | Rename System Utilities | Defense Evasion | +| T1546.001 | Change Default File Association | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + + +#### Reference + +* https://blog.malwarebytes.com/cybercrime/2013/12/file-extensions-2/ + +* https://attack.mitre.org/wiki/Technique/T1042 + + +_version_: 1 +
+ +--- + +### Windows Service Abuse +Windows services are often used by attackers for persistence and the ability to load drivers or otherwise interact with the Windows kernel. This Analytic Story helps you monitor your environment for indications that Windows services are being modified or created in a suspicious manner. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1543.003](https://attack.mitre.org/techniques/T1543.003/), [T1569.002](https://attack.mitre.org/techniques/T1569.002/), [T1574.011](https://attack.mitre.org/techniques/T1574.011/) +- **Last Updated**: 2017-11-02 + +
+ details + +#### Detection Profile + +* [First Time Seen Running Windows Service](detections.md#first-time-seen-running-windows-service) + +* [Reg exe Manipulating Windows Services Registry Keys](detections.md#reg-exe-manipulating-windows-services-registry-keys) + +* [Sc exe Manipulating Windows Services](detections.md#sc-exe-manipulating-windows-services) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1569.002 | Service Execution | Execution | +| T1059.001 | PowerShell | Execution | +| T1059.003 | Windows Command Shell | Execution | +| T1574.011 | Services Registry Permissions Weakness | Defense Evasion, Persistence, Privilege Escalation | +| T1543.003 | Windows Service | Persistence, Privilege Escalation | + +#### Kill Chain Phase + +* Actions on Objectives + +* Installation + + +#### Reference + +* https://attack.mitre.org/wiki/Technique/T1050 + +* https://attack.mitre.org/wiki/Technique/T1031 + + +_version_: 3 +
+ +--- + +
+ +## Vulnerability +
+ details + +### Apache Struts Vulnerability +Detect and investigate activities--such as unusually long `Content-Type` length, suspicious java classes and web servers executing suspicious processes--consistent with attempts to exploit Apache Struts vulnerabilities. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Endpoint +- **ATT&CK**: [T1082](https://attack.mitre.org/techniques/T1082/) +- **Last Updated**: 2018-12-06 + +
+ details + +#### Detection Profile + +* [Suspicious Java Classes](detections.md#suspicious-java-classes) + +* [Unusually Long Content-Type Length](detections.md#unusually-long-content-type-length) + +* [Web Servers Executing Suspicious Processes](detections.md#web-servers-executing-suspicious-processes) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1082 | System Information Discovery | Discovery | + +#### Kill Chain Phase + +* Actions on Objectives + +* Delivery + +* Exploitation + + +#### Reference + +* https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/v3.2/dev/rules/REQUEST-944-APPLICATION-ATTACK-JAVA.conf + + +_version_: 1 +
+ +--- + +### JBoss Vulnerability +In March of 2016, adversaries were seen using JexBoss--an open-source utility used for testing and exploiting JBoss application servers. These searches help detect evidence of these attacks, such as network connections to external resources or web services spawning atypical child processes, among others. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Web +- **ATT&CK**: [T1082](https://attack.mitre.org/techniques/T1082/) +- **Last Updated**: 2017-09-14 + +
+ details + +#### Detection Profile + +* [Detect attackers scanning for vulnerable JBoss servers](detections.md#detect-attackers-scanning-for-vulnerable-jboss-servers) + +* [Detect malicious requests to exploit JBoss servers](detections.md#detect-malicious-requests-to-exploit-jboss-servers) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| +| T1082 | System Information Discovery | Discovery | + +#### Kill Chain Phase + +* Delivery + +* Reconnaissance + + +#### Reference + +* http://www.deependresearch.org/2016/04/jboss-exploits-view-from-victim.html + + +_version_: 1 +
+ +--- + +### Spectre And Meltdown Vulnerabilities +Assess and mitigate your systems' vulnerability to Spectre and Meltdown exploitation with the searches in this Analytic Story. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: Vulnerabilities +- **ATT&CK**: +- **Last Updated**: 2018-01-08 + +
+ details + +#### Detection Profile + +* [Spectre and Meltdown Vulnerable Systems](detections.md#spectre-and-meltdown-vulnerable-systems) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + + +#### Reference + +* https://meltdownattack.com/ + + +_version_: 1 +
+ +--- + +### Splunk Enterprise Vulnerability +Keeping your Splunk deployment up to date is critical and may help you reduce the risk of CVE-2016-4859, an open-redirection vulnerability within some older versions of Splunk Enterprise. The detection search will help ensure that users are being properly authenticated and not being redirected to malicious domains. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2017-09-19 + +
+ details + +#### Detection Profile + +* [Open Redirect in Splunk Web](detections.md#open-redirect-in-splunk-web) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Delivery + + +#### Reference + +* http://www.splunk.com/view/SP-CAAAPQ6#announce + +* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4859 + + +_version_: 1 +
+ +--- + +### Splunk Enterprise Vulnerability CVE-2018-11409 +Reduce the risk of CVE-2018-11409, an information disclosure vulnerability within some older versions of Splunk Enterprise, with searches designed to help ensure that your Splunk system does not leak information to authenticated users. + +- **Product**: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +- **Datamodel**: +- **ATT&CK**: +- **Last Updated**: 2018-06-14 + +
+ details + +#### Detection Profile + +* [Splunk Enterprise Information Disclosure](detections.md#splunk-enterprise-information-disclosure) + + +#### ATT&CK + +| ID | Technique | Tactic | +| ----------- | ----------- |--------------| + +#### Kill Chain Phase + +* Delivery + + +#### Reference + +* https://nvd.nist.gov/vuln/detail/CVE-2018-11409 + +* https://www.splunk.com/view/SP-CAAAP5E#VulnerabilityDescriptionsandRatings + +* https://www.exploit-db.com/exploits/44865/ + + +_version_: 1 +
+ +--- + +
diff --git a/docs/stories.wiki b/docs/stories.wiki new file mode 100644 index 0000000000..0f2f16281c --- /dev/null +++ b/docs/stories.wiki @@ -0,0 +1,5783 @@ +=Splunk Security Content Analytic Story = + +---- +All the Analytic Stories shipped to different Splunk products. Below is a breakdown by Category. + +==Abuse== + + +===Brand monitoring=== +Detect and investigate activity that may indicate that an adversary is using faux domains to mislead users into interacting with malicious infrastructure. Monitor DNS, email, and web traffic for permutations of your brand name. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email, Network_Resolution, Web +* '''ATT&CK''': +* '''Last Updated''': 2017-12-19 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Monitor_dns_for_brand_abuse|Monitor DNS For Brand Abuse]] + +* [[Documentation:ESSOC:detections:Detections#Monitor_email_for_brand_abuse|Monitor Email For Brand Abuse]] + +* [[Documentation:ESSOC:detections:Detections#Monitor_web_traffic_for_brand_abuse|Monitor Web Traffic For Brand Abuse]] + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Delivery + + +====Reference==== + +* https://www.zerofox.com/blog/what-is-digital-risk-monitoring/ + +* https://securingtomorrow.mcafee.com/consumer/family-safety/what-is-typosquatting/ + +* https://blog.malwarebytes.com/cybercrime/2016/06/explained-typosquatting/ + + +''version'': 1 +
+
+ +---- + +===Dns amplification attacks=== +DNS poses a serious threat as a Denial of Service (DOS) amplifier, if it responds to `ANY` queries. This Analytic Story can help you detect attackers who may be abusing your company's DNS infrastructure to launch amplification attacks, causing Denial of Service to other victims. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1498.002/ T1498.002] +* '''Last Updated''': 2016-09-13 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Large_volume_of_dns_any_queries|Large Volume of DNS ANY Queries]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1498.002 +| Reflection Amplification +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.us-cert.gov/ncas/alerts/TA13-088A + +* https://www.imperva.com/learn/application-security/dns-amplification/ + + +''version'': 1 +
+
+ +---- + +===Data protection=== +Fortify your data-protection arsenal--while continuing to ensure data confidentiality and integrity--with searches that monitor for and help you investigate possible signs of data exfiltration. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change_Analysis, Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1048/ T1048] +* '''Last Updated''': 2017-09-14 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_usb_device_insertion|Detect USB device insertion]] + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + +* [[Documentation:ESSOC:detections:Detections#Detection_of_dns_tunnels|Detection of DNS Tunnels]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.cisecurity.org/controls/data-protection/ + +* https://www.sans.org/reading-room/whitepapers/dns/splunk-detect-dns-tunneling-37022 + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + + +''version'': 1 +
+
+ +---- + +===Host redirection=== +Detect evidence of tactics used to redirect traffic from a host to a destination other than the one intended--potentially one that is part of an adversary's attack infrastructure. An example is redirecting communications regarding patches and updates or misleading users into visiting a malicious website. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1071.004/ T1071.004], [https://attack.mitre.org/techniques/T1095/ T1095], [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2017-09-14 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Clients_connecting_to_multiple_dns_servers|Clients Connecting to Multiple DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_requests_resolved_by_unauthorized_dns_servers|DNS Query Requests Resolved by Unauthorized DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Windows_hosts_file_modification|Windows hosts file modification]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1071.004 +| DNS +| Command and Control +|- +| T1095 +| Non-Application Layer Protocol +| Command and Control +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Command and Control + + +====Reference==== + +* https://blog.malwarebytes.com/cybercrime/2016/09/hosts-file-hijacks/ + + +''version'': 1 +
+
+ +---- + +===Netsh abuse=== +Detect activities and various techniques associated with the abuse of `netsh.exe`, which can disable local firewall settings or set up a remote connection to a host from an infected system. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.004/ T1562.004] +* '''Last Updated''': 2017-01-05 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Processes_created_by_netsh|Processes created by netsh]] + +* [[Documentation:ESSOC:detections:Detections#Processes_launching_netsh|Processes launching netsh]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.004 +| Disable or Modify System Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://docs.microsoft.com/en-us/previous-versions/tn-archive/bb490939(v=technet.10) + +* https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html + +* http://blog.jpcert.or.jp/2016/01/windows-commands-abused-by-attackers.html + + +''version'': 1 +
+
+ +---- + +===Web fraud detection=== +Monitor your environment for activity consistent with common attack techniques bad actors use when attempting to compromise web servers or other web-related assets. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136/ T1136], [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2018-10-08 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Web_fraud_-_account_harvesting|Web Fraud - Account Harvesting]] + +* [[Documentation:ESSOC:detections:Detections#Web_fraud_-_anomalous_user_clickspeed|Web Fraud - Anomalous User Clickspeed]] + +* [[Documentation:ESSOC:detections:Detections#Web_fraud_-_password_sharing_across_accounts|Web Fraud - Password Sharing Across Accounts]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136 +| Create Account +| Persistence +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.fbi.gov/scams-and-safety/common-fraud-schemes/internet-fraud + +* https://www.fbi.gov/news/stories/2017-internet-crime-report-released-050718 + + +''version'': 1 +
+
+ +---- + + + +==Adversary Tactics== + + +===Baron samedit cve-2021-3156=== +Uncover activity consistent with CVE-2021-3156. Discovered by the Qualys Research Team, this vulnerability has been found to affect sudo across multiple Linux distributions (Ubuntu 20.04 and prior, Debian 10 and prior, Fedora 33 and prior). As this vulnerability was committed to code in July 2011, there will be many distributions affected. Successful exploitation of this vulnerability allows any unprivileged user to gain root privileges on the vulnerable host. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068] +* '''Last Updated''': 2021-01-27 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_baron_samedit_cve-2021-3156|Detect Baron Samedit CVE-2021-3156]] + +* [[Documentation:ESSOC:detections:Detections#Detect_baron_samedit_cve-2021-3156_segfault|Detect Baron Samedit CVE-2021-3156 Segfault]] + +* [[Documentation:ESSOC:detections:Detections#Detect_baron_samedit_cve-2021-3156_via_osquery|Detect Baron Samedit CVE-2021-3156 via OSQuery]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Reference==== + +* https://blog.qualys.com/vulnerabilities-research/2021/01/26/cve-2021-3156-heap-based-buffer-overflow-in-sudo-baron-samedit + + +''version'': 1 +
+
+ +---- + +===Cobalt strike=== +Cobalt Strike is threat emulation software. Red teams and penetration testers use Cobalt Strike to demonstrate the risk of a breach and evaluate mature security programs. Most recently, Cobalt Strike has become the choice tool by threat groups due to its ease of use and extensibility. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011] +* '''Last Updated''': 2021-02-16 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_startw|Suspicious Rundll32 StartW]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_no_commandline_arguments|Suspicious Rundll32 no CommandLine Arguments]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.cobaltstrike.com/ + +* https://www.infocyte.com/blog/2020/09/02/cobalt-strike-the-new-favorite-among-thieves/ + +* https://bluescreenofjeff.com/2017-01-24-how-to-write-malleable-c2-profiles-for-cobalt-strike/ + +* https://blog.talosintelligence.com/2020/09/coverage-strikes-back-cobalt-strike-paper.html + +* https://www.fireeye.com/blog/threat-research/2020/12/unauthorized-access-of-fireeye-red-team-tools.html + + +''version'': 1 +
+
+ +---- + +===Collection and staging=== +Monitor for and investigate activities--such as suspicious writes to the Windows Recycling Bin or email servers sending high amounts of traffic to specific hosts, for example--that may indicate that an adversary is harvesting and exfiltrating sensitive data. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1114.001/ T1114.001], [https://attack.mitre.org/techniques/T1114.002/ T1114.002], [https://attack.mitre.org/techniques/T1036/ T1036] +* '''Last Updated''': 2020-02-03 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Email_files_written_outside_of_the_outlook_directory|Email files written outside of the Outlook directory]] + +* [[Documentation:ESSOC:detections:Detections#Email_servers_sending_high_volume_traffic_to_hosts|Email servers sending high volume traffic to hosts]] + +* [[Documentation:ESSOC:detections:Detections#Hosts_receiving_high_volume_of_network_traffic_from_email_server|Hosts receiving high volume of network traffic from email server]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_writes_to_system_volume_information|Suspicious writes to System Volume Information]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_writes_to_windows_recycle_bin|Suspicious writes to windows Recycle Bin]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1114.001 +| Local Email Collection +| Collection +|- +| T1114.002 +| Remote Email Collection +| Collection +|- +| T1036 +| Masquerading +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/wiki/Collection + +* https://attack.mitre.org/wiki/Technique/T1074 + + +''version'': 1 +
+
+ +---- + +===Command and control=== +Detect and investigate tactics, techniques, and procedures leveraged by attackers to establish and operate command and control channels. Implants installed by attackers on compromised endpoints use these channels to receive instructions and send data back to the malicious operators. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1071.004/ T1071.004], [https://attack.mitre.org/techniques/T1095/ T1095], [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2018-06-01 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Clients_connecting_to_multiple_dns_servers|Clients Connecting to Multiple DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_outliers_-_mltk|DNS Query Length Outliers - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_with_high_standard_deviation|DNS Query Length With High Standard Deviation]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_requests_resolved_by_unauthorized_dns_servers|DNS Query Requests Resolved by Unauthorized DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_large_outbound_icmp_packets|Detect Large Outbound ICMP Packets]] + +* [[Documentation:ESSOC:detections:Detections#Detect_long_dns_txt_record_response|Detect Long DNS TXT Record Response]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_blocked_outbound_traffic_from_your_aws|Detect Spike in blocked Outbound Traffic from your AWS]] + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + +* [[Documentation:ESSOC:detections:Detections#Detection_of_dns_tunnels|Detection of DNS Tunnels]] + +* [[Documentation:ESSOC:detections:Detections#Excessive_dns_failures|Excessive DNS Failures]] + +* [[Documentation:ESSOC:detections:Detections#Prohibited_network_traffic_allowed|Prohibited Network Traffic Allowed]] + +* [[Documentation:ESSOC:detections:Detections#Protocol_or_port_mismatch|Protocol or Port Mismatch]] + +* [[Documentation:ESSOC:detections:Detections#Tor_traffic|TOR Traffic]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1071.004 +| DNS +| Command and Control +|- +| T1095 +| Non-Application Layer Protocol +| Command and Control +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Delivery + + +====Reference==== + +* https://attack.mitre.org/wiki/Command_and_Control + +* https://searchsecurity.techtarget.com/feature/Command-and-control-servers-The-puppet-masters-that-govern-malware + + +''version'': 1 +
+
+ +---- + +===Common phishing frameworks=== +Detect DNS and web requests to fake websites generated by the EvilGinx2 toolkit. These websites are designed to fool unwitting users who have clicked on a malicious link in a phishing email. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.003/ T1566.003] +* '''Last Updated''': 2019-04-29 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_dns_requests_to_phishing_sites_leveraging_evilginx2|Detect DNS requests to Phishing Sites leveraging EvilGinx2]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.003 +| Spearphishing via Service +| Initial Access +|} + + +====Kill Chain Phase==== + +* Command and Control + +* Delivery + + +====Reference==== + +* https://github.com/kgretzky/evilginx2 + +* https://attack.mitre.org/techniques/T1192/ + +* https://breakdev.org/evilginx-advanced-phishing-with-two-factor-authentication-bypass/ + + +''version'': 1 +
+
+ +---- + +===Credential dumping=== +Uncover activity consistent with credential dumping, a technique wherein attackers compromise systems and attempt to obtain and exfiltrate passwords. The threat actors use these pilfered credentials to further escalate privileges and spread throughout a target environment. The included searches in this Analytic Story are designed to identify attempts to credential dumping. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1003.001/ T1003.001], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1003.002/ T1003.002], [https://attack.mitre.org/techniques/T1003/ T1003], [https://attack.mitre.org/techniques/T1003.003/ T1003.003] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Access_lsass_memory_for_dump_creation|Access LSASS Memory for Dump Creation]] + +* [[Documentation:ESSOC:detections:Detections#Attempt_to_set_default_powershell_execution_policy_to_unrestricted_or_bypass|Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass]] + +* [[Documentation:ESSOC:detections:Detections#Attempted_credential_dump_from_registry_via_reg_exe|Attempted Credential Dump From Registry via Reg exe]] + +* [[Documentation:ESSOC:detections:Detections#Create_remote_thread_into_lsass|Create Remote Thread into LSASS]] + +* [[Documentation:ESSOC:detections:Detections#Creation_of_shadow_copy|Creation of Shadow Copy]] + +* [[Documentation:ESSOC:detections:Detections#Creation_of_shadow_copy_with_wmic_and_powershell|Creation of Shadow Copy with wmic and powershell]] + +* [[Documentation:ESSOC:detections:Detections#Creation_of_lsass_dump_with_taskmgr|Creation of lsass Dump with Taskmgr]] + +* [[Documentation:ESSOC:detections:Detections#Credential_dumping_via_copy_command_from_shadow_copy|Credential Dumping via Copy Command from Shadow Copy]] + +* [[Documentation:ESSOC:detections:Detections#Credential_dumping_via_symlink_to_shadow_copy|Credential Dumping via Symlink to Shadow Copy]] + +* [[Documentation:ESSOC:detections:Detections#Detect_credential_dumping_through_lsass_access|Detect Credential Dumping through LSASS access]] + +* [[Documentation:ESSOC:detections:Detections#Detect_dump_lsass_memory_using_comsvcs|Detect Dump LSASS Memory using comsvcs]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mimikatz_using_loaded_images|Detect Mimikatz Using Loaded Images]] + +* [[Documentation:ESSOC:detections:Detections#Dump_lsass_via_comsvcs_dll|Dump LSASS via comsvcs DLL]] + +* [[Documentation:ESSOC:detections:Detections#Dump_lsass_via_procdump|Dump LSASS via procdump]] + +* [[Documentation:ESSOC:detections:Detections#Dump_lsass_via_procdump_rename|Dump LSASS via procdump Rename]] + +* [[Documentation:ESSOC:detections:Detections#Ntdsutil_export_ntds|Ntdsutil export ntds]] + +* [[Documentation:ESSOC:detections:Detections#Unsigned_image_loaded_by_lsass|Unsigned Image Loaded by LSASS]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1003.001 +| LSASS Memory +| Credential Access +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1003.002 +| Security Account Manager +| Credential Access +|- +| T1003 +| OS Credential Dumping +| Credential Access +|- +| T1003.003 +| NTDS +| Credential Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Installation + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1003 + +* https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for.html + + +''version'': 3 +
+
+ +---- + +===Dns hijacking=== +Secure your environment against DNS hijacks with searches that help you detect and investigate unauthorized changes to DNS records. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1071.004/ T1071.004], [https://attack.mitre.org/techniques/T1095/ T1095], [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Clients_connecting_to_multiple_dns_servers|Clients Connecting to Multiple DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_requests_resolved_by_unauthorized_dns_servers|DNS Query Requests Resolved by Unauthorized DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Dns_record_changed|DNS record changed]] + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1071.004 +| DNS +| Command and Control +|- +| T1095 +| Non-Application Layer Protocol +| Command and Control +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2017/09/apt33-insights-into-iranian-cyber-espionage.html + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + +* http://www.noip.com/blog/2014/07/11/dynamic-dns-can-use-2/ + +* https://www.splunk.com/blog/2015/08/04/detecting-dynamic-dns-domains-in-splunk.html + + +''version'': 1 +
+
+ +---- + +===Data exfiltration=== +The stealing of data by an adversary. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1041/ T1041] +* '''Last Updated''': 2020-10-21 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_snicat_sni_exfiltration|Detect SNICat SNI Exfiltration]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1041 +| Exfiltration Over C2 Channel +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/tactics/TA0010/ + + +''version'': 1 +
+
+ +---- + +===Detect zerologon attack=== +Uncover activity related to the execution of Zerologon CVE-2020-11472, a technique wherein attackers target a Microsoft Windows Domain Controller to reset its computer account password. The result from this attack is attackers can now provide themselves high privileges and take over Domain Controller. The included searches in this Analytic Story are designed to identify attempts to reset Domain Controller Computer Account via exploit code remotely or via the use of tool Mimikatz as payload carrier. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1210/ T1210], [https://attack.mitre.org/techniques/T1003.001/ T1003.001], [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2020-09-18 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_computer_changed_with_anonymous_account|Detect Computer Changed with Anonymous Account]] + +* [[Documentation:ESSOC:detections:Detections#Detect_credential_dumping_through_lsass_access|Detect Credential Dumping through LSASS access]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mimikatz_using_loaded_images|Detect Mimikatz Using Loaded Images]] + +* [[Documentation:ESSOC:detections:Detections#Detect_zerologon_via_zeek|Detect Zerologon via Zeek]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1210 +| Exploitation of Remote Services +| Lateral Movement +|- +| T1003.001 +| LSASS Memory +| Credential Access +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Exploitation + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1003 + +* https://github.com/SecuraBV/CVE-2020-1472 + +* https://www.secura.com/blog/zero-logon + +* https://nvd.nist.gov/vuln/detail/CVE-2020-1472 + + +''version'': 1 +
+
+ +---- + +===Disabling security tools=== +Looks for activities and techniques associated with the disabling of security tools on a Windows system, such as suspicious `reg.exe` processes, processes launching netsh, and many others. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1553.004/ T1553.004], [https://attack.mitre.org/techniques/T1562.001/ T1562.001], [https://attack.mitre.org/techniques/T1562.004/ T1562.004], [https://attack.mitre.org/techniques/T1543.003/ T1543.003], [https://attack.mitre.org/techniques/T1112/ T1112] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Attempt_to_add_certificate_to_untrusted_store|Attempt To Add Certificate To Untrusted Store]] + +* [[Documentation:ESSOC:detections:Detections#Attempt_to_stop_security_service|Attempt To Stop Security Service]] + +* [[Documentation:ESSOC:detections:Detections#Processes_launching_netsh|Processes launching netsh]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_reg_exe_process|Suspicious Reg exe Process]] + +* [[Documentation:ESSOC:detections:Detections#Unload_sysmon_filter_driver|Unload Sysmon Filter Driver]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1553.004 +| Install Root Certificate +| Defense Evasion +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|- +| T1562.004 +| Disable or Modify System Firewall +| Defense Evasion +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|- +| T1112 +| Modify Registry +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Installation + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1089 + +* https://blog.malwarebytes.com/cybercrime/2015/11/vonteera-adware-uses-certificates-to-disable-anti-malware/ + +* https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Tools-Report.pdf + + +''version'': 2 +
+
+ +---- + +===F5 tmui rce cve-2020-5902=== +Uncover activity consistent with CVE-2020-5902. Discovered by Positive Technologies researchers, this vulnerability affects F5 BIG-IP, BIG-IQ. and Traffix SDC devices (vulnerable versions in F5 support link below). This vulnerability allows unauthenticated users, along with authenticated users, who have access to the configuration utility to execute system commands, create/delete files, disable services, and/or execute Java code. This vulnerability can result in full system compromise. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2020-08-02 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_f5_tmui_rce_cve-2020-5902|Detect F5 TMUI RCE CVE-2020-5902]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Reference==== + +* https://www.ptsecurity.com/ww-en/about/news/f5-fixes-critical-vulnerability-discovered-by-positive-technologies-in-big-ip-application-delivery-controller/ + +* https://support.f5.com/csp/article/K52145254 + +* https://blog.cloudflare.com/cve-2020-5902-helping-to-protect-against-the-f5-tmui-rce-vulnerability/ + + +''version'': 1 +
+
+ +---- + +===Lateral movement=== +Detect and investigate tactics, techniques, and procedures around how attackers move laterally within the enterprise. Because lateral movement can expose the adversary to detection, it should be an important focus for security analysts. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1550.002/ T1550.002], [https://attack.mitre.org/techniques/T1558.003/ T1558.003], [https://attack.mitre.org/techniques/T1021.001/ T1021.001], [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_activity_related_to_pass_the_hash_attacks|Detect Activity Related to Pass the Hash Attacks]] + +* [[Documentation:ESSOC:detections:Detections#Kerberoasting_spn_request_with_rc4_encryption|Kerberoasting spn request with RC4 encryption]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_traffic|Remote Desktop Network Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_process_running_on_system|Remote Desktop Process Running On System]] + +* [[Documentation:ESSOC:detections:Detections#Schtasks_scheduling_job_on_remote_system|Schtasks scheduling job on remote system]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1550.002 +| Pass the Hash +| Defense Evasion, Lateral Movement +|- +| T1558.003 +| Kerberoasting +| Credential Access +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.fireeye.com/blog/executive-perspective/2015/08/malware_lateral_move.html + + +''version'': 2 +
+
+ +---- + +===Malicious powershell=== +Attackers are finding stealthy ways "live off the land," leveraging utilities and tools that come standard on the endpoint--such as PowerShell--to achieve their goals without downloading binary files. These searches can help you detect and investigate PowerShell command-line options that may be indicative of malicious intent. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1027/ T1027] +* '''Last Updated''': 2017-08-23 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Attempt_to_set_default_powershell_execution_policy_to_unrestricted_or_bypass|Attempt To Set Default PowerShell Execution Policy To Unrestricted or Bypass]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_connect_to_internet_with_hidden_window|Malicious PowerShell Process - Connect To Internet With Hidden Window]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_encoded_command|Malicious PowerShell Process - Encoded Command]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_multiple_suspicious_command-line_arguments|Malicious PowerShell Process - Multiple Suspicious Command-Line Arguments]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_with_obfuscation_techniques|Malicious PowerShell Process With Obfuscation Techniques]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1027 +| Obfuscated Files or Information +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://blogs.mcafee.com/mcafee-labs/malware-employs-powershell-to-infect-systems/ + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + + +''version'': 4 +
+
+ +---- + +===Phishing payloads=== +Detect signs of malicious payloads that may indicate that your environment has been breached via a phishing attack. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566.001/ T1566.001], [https://attack.mitre.org/techniques/T1566.002/ T1566.002] +* '''Last Updated''': 2019-04-29 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_oulook_exe_writing_a__zip_file|Detect Oulook exe writing a zip file]] + +* [[Documentation:ESSOC:detections:Detections#Process_creating_lnk_file_in_suspicious_location|Process Creating LNK file in Suspicious Location]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566.001 +| Spearphishing Attachment +| Initial Access +|- +| T1566.002 +| Spearphishing Link +| Initial Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Installation + + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2019/04/spear-phishing-campaign-targets-ukraine-government.html + + +''version'': 1 +
+
+ +---- + +===Possible backdoor activity associated with mudcarp espionage campaigns=== +Monitor your environment for suspicious behaviors that resemble the techniques employed by the MUDCARP threat group. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1547.001/ T1547.001] +* '''Last Updated''': 2020-01-22 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_command_line_argument|First time seen command line argument]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_connect_to_internet_with_hidden_window|Malicious PowerShell Process - Connect To Internet With Hidden Window]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line|Unusually Long Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line_-_mltk|Unusually Long Command Line - MLTK]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://www.infosecurity-magazine.com/news/scope-of-mudcarp-attacks-highlight-1/ + +* http://blog.amossys.fr/badflick-is-not-so-bad.html + + +''version'': 1 +
+
+ +---- + +===Sql injection=== +Use the searches in this Analytic Story to help you detect structured query language (SQL) injection attempts characterized by long URLs that contain malicious parameters. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1190/ T1190] +* '''Last Updated''': 2017-09-19 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Sql_injection_with_long_urls|SQL Injection with Long URLs]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1190 +| Exploit Public-Facing Application +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Reference==== + +* https://capec.mitre.org/data/definitions/66.html + +* https://www.incapsula.com/web-application-security/sql-injection.html + + +''version'': 1 +
+
+ +---- + +===Sunburst malware=== +Sunburst is a trojanized updates to SolarWinds Orion IT monitoring and management software. It was discovered by FireEye in December 2020. The actors behind this campaign gained access to numerous public and private organizations around the world. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic, Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1071.002/ T1071.002], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1569.002/ T1569.002], [https://attack.mitre.org/techniques/T1027/ T1027], [https://attack.mitre.org/techniques/T1543.003/ T1543.003], [https://attack.mitre.org/techniques/T1053.005/ T1053.005], [https://attack.mitre.org/techniques/T1203/ T1203], [https://attack.mitre.org/techniques/T1505.003/ T1505.003], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1018/ T1018] +* '''Last Updated''': 2020-12-14 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_outbound_smb_traffic|Detect Outbound SMB Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Detect_prohibited_applications_spawning_cmd_exe|Detect Prohibited Applications Spawning cmd exe]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_running_windows_service|First Time Seen Running Windows Service]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_encoded_command|Malicious PowerShell Process - Encoded Command]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + +* [[Documentation:ESSOC:detections:Detections#Scheduled_task_deleted_or_created_via_cmd|Scheduled Task Deleted Or Created via CMD]] + +* [[Documentation:ESSOC:detections:Detections#Schtasks_scheduling_job_on_remote_system|Schtasks scheduling job on remote system]] + +* [[Documentation:ESSOC:detections:Detections#Sunburst_correlation_dll_and_network_event|Sunburst Correlation DLL and Network Event]] + +* [[Documentation:ESSOC:detections:Detections#Supernova_webshell|Supernova Webshell]] + +* [[Documentation:ESSOC:detections:Detections#Tor_traffic|TOR Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Windows_adfind_exe|Windows AdFind Exe]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1071.002 +| File Transfer Protocols +| Command and Control +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1569.002 +| Service Execution +| Execution +|- +| T1027 +| Obfuscated Files or Information +| Defense Evasion +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|- +| T1203 +| Exploitation for Client Execution +| Execution +|- +| T1505.003 +| Web Shell +| Persistence +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1018 +| Remote System Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Exfiltration + +* Exploitation + +* Installation + + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html + +* https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/ + + +''version'': 1 +
+
+ +---- + +===Suspicious command-line executions=== +Leveraging the Windows command-line interface (CLI) is one of the most common attack techniques--one that is also detailed in the MITRE ATT&CK framework. Use this Analytic Story to help you identify unusual or suspicious use of the CLI on Windows systems. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2020-02-03 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_prohibited_applications_spawning_cmd_exe|Detect Prohibited Applications Spawning cmd exe]] + +* [[Documentation:ESSOC:detections:Detections#Detect_use_of_cmd_exe_to_launch_script_interpreters|Detect Use of cmd exe to Launch Script Interpreters]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_command_line_argument|First time seen command line argument]] + +* [[Documentation:ESSOC:detections:Detections#System_processes_run_from_unexpected_locations|System Processes Run From Unexpected Locations]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line|Unusually Long Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line_-_mltk|Unusually Long Command Line - MLTK]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Exploitation + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1059 + +* https://www.microsoft.com/en-us/wdsi/threats/macro-malware + +* https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf + + +''version'': 2 +
+
+ +---- + +===Suspicious compiled html activity=== +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.001/ T1218.001] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_html_help_renamed|Detect HTML Help Renamed]] + +* [[Documentation:ESSOC:detections:Detections#Detect_html_help_spawn_child_process|Detect HTML Help Spawn Child Process]] + +* [[Documentation:ESSOC:detections:Detections#Detect_html_help_url_in_command_line|Detect HTML Help URL in Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Detect_html_help_using_infotech_storage_handlers|Detect HTML Help Using InfoTech Storage Handlers]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.001 +| Compiled HTML File +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://attack.mitre.org/techniques/T1218/001/ + +* https://docs.microsoft.com/en-us/windows/win32/api/htmlhelp/nf-htmlhelp-htmlhelpa + + +''version'': 1 +
+
+ +---- + +===Suspicious dns traffic=== +Attackers often attempt to hide within or otherwise abuse the domain name system (DNS). You can thwart attempts to manipulate this omnipresent protocol by monitoring for these types of abuses. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1071.004/ T1071.004], [https://attack.mitre.org/techniques/T1095/ T1095], [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1071.001/ T1071.001] +* '''Last Updated''': 2017-09-18 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Clients_connecting_to_multiple_dns_servers|Clients Connecting to Multiple DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_outliers_-_mltk|DNS Query Length Outliers - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_with_high_standard_deviation|DNS Query Length With High Standard Deviation]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_requests_resolved_by_unauthorized_dns_servers|DNS Query Requests Resolved by Unauthorized DNS Servers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_long_dns_txt_record_response|Detect Long DNS TXT Record Response]] + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + +* [[Documentation:ESSOC:detections:Detections#Detection_of_dns_tunnels|Detection of DNS Tunnels]] + +* [[Documentation:ESSOC:detections:Detections#Excessive_dns_failures|Excessive DNS Failures]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1071.004 +| DNS +| Command and Control +|- +| T1095 +| Non-Application Layer Protocol +| Command and Control +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1071.001 +| Web Protocols +| Command and Control +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* http://blogs.splunk.com/2015/10/01/random-words-on-entropy-and-dns/ + +* http://www.darkreading.com/analytics/security-monitoring/got-malware-three-signs-revealed-in-dns-traffic/d/d-id/1139680 + +* https://live.paloaltonetworks.com/t5/Threat-Vulnerability-Articles/What-are-suspicious-DNS-queries/ta-p/71454 + + +''version'': 1 +
+
+ +---- + +===Suspicious emails=== +Email remains one of the primary means for attackers to gain an initial foothold within the modern enterprise. Detect and investigate suspicious emails in your environment with the help of the searches in this Analytic Story. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email, UEBA +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1566/ T1566], [https://attack.mitre.org/techniques/T1566.001/ T1566.001] +* '''Last Updated''': 2020-01-27 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Email_attachments_with_lots_of_spaces|Email Attachments With Lots Of Spaces]] + +* [[Documentation:ESSOC:detections:Detections#Monitor_email_for_brand_abuse|Monitor Email For Brand Abuse]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_email_-_uba_anomaly|Suspicious Email - UBA Anomaly]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_email_attachment_extensions|Suspicious Email Attachment Extensions]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1566 +| Phishing +| Initial Access +|- +| T1566.001 +| Spearphishing Attachment +| Initial Access +|} + + +====Kill Chain Phase==== + +* Delivery + + +====Reference==== + +* https://www.splunk.com/blog/2015/06/26/phishing-hits-a-new-level-of-quality/ + + +''version'': 1 +
+
+ +---- + +===Suspicious mshta activity=== +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.005/ T1218.005], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1547.001/ T1547.001] +* '''Last Updated''': 2021-01-20 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_mshta_url_in_command_line|Detect MSHTA Url in Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Detect_prohibited_applications_spawning_cmd_exe|Detect Prohibited Applications Spawning cmd exe]] + +* [[Documentation:ESSOC:detections:Detections#Detect_rundll32_inline_hta_execution|Detect Rundll32 Inline HTA Execution]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mshta_inline_hta_execution|Detect mshta inline hta execution]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mshta_renamed|Detect mshta renamed]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_mshta_child_process|Suspicious mshta child process]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_mshta_spawn|Suspicious mshta spawn]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.005 +| Mshta +| Defense Evasion +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Exploitation + + +====Reference==== + +* https://redcanary.com/blog/introducing-atomictestharnesses/ + +* https://redcanary.com/blog/windows-registry-attacks-threat-detection/ + +* https://attack.mitre.org/techniques/T1218/005/ + +* https://medium.com/@mbromileyDFIR/malware-monday-aebb456356c5 + + +''version'': 2 +
+
+ +---- + +===Suspicious okta activity=== +Monitor your Okta environment for suspicious activities. Due to the Covid outbreak, many users are migrating over to leverage cloud services more and more. Okta is a popular tool to manage multiple users and the web-based applications they need to stay productive. The searches in this story will help monitor your Okta environment for suspicious activities and associated user behaviors. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.001/ T1078.001] +* '''Last Updated''': 2020-04-02 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Multiple_okta_users_with_invalid_credentials_from_the_same_ip|Multiple Okta Users With Invalid Credentials From The Same IP]] + +* [[Documentation:ESSOC:detections:Detections#Okta_account_lockout_events|Okta Account Lockout Events]] + +* [[Documentation:ESSOC:detections:Detections#Okta_failed_sso_attempts|Okta Failed SSO Attempts]] + +* [[Documentation:ESSOC:detections:Detections#Okta_user_logins_from_multiple_cities|Okta User Logins From Multiple Cities]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.001 +| Default Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1078 + +* https://owasp.org/www-community/attacks/Credential_stuffing + +* https://searchsecurity.techtarget.com/answer/What-is-a-password-spraying-attack-and-how-does-it-work + + +''version'': 1 +
+
+ +---- + +===Suspicious regsvcs regasm activity=== +Monitor and detect techniques used by attackers who leverage the mshta.exe process to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.009/ T1218.009] +* '''Last Updated''': 2021-02-11 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_regasm_spawning_a_process|Detect Regasm Spawning a Process]] + +* [[Documentation:ESSOC:detections:Detections#Detect_regasm_with_network_connection|Detect Regasm with Network Connection]] + +* [[Documentation:ESSOC:detections:Detections#Detect_regasm_with_no_command_line_arguments|Detect Regasm with no Command Line Arguments]] + +* [[Documentation:ESSOC:detections:Detections#Detect_regsvcs_spawning_a_process|Detect Regsvcs Spawning a Process]] + +* [[Documentation:ESSOC:detections:Detections#Detect_regsvcs_with_network_connection|Detect Regsvcs with Network Connection]] + +* [[Documentation:ESSOC:detections:Detections#Detect_regsvcs_with_no_command_line_arguments|Detect Regsvcs with No Command Line Arguments]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.009 +| Regsvcs/Regasm +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/009/ + +* https://github.com/rapid7/metasploit-framework/blob/master/documentation/modules/evasion/windows/applocker_evasion_regasm_regsvcs.md + +* https://oddvar.moe/2017/12/13/applocker-case-study-how-insecure-is-it-really-part-1/ + + +''version'': 1 +
+
+ +---- + +===Suspicious regsvr32 activity=== +Monitor and detect techniques used by attackers who leverage the regsvr32.exe process to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.010/ T1218.010] +* '''Last Updated''': 2021-01-29 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_regsvr32_application_control_bypass|Detect Regsvr32 Application Control Bypass]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_regsvr32_register_suspicious_path|Suspicious Regsvr32 Register Suspicious Path]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.010 +| Regsvr32 +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/010/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/T1218.010.md + +* https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/ + + +''version'': 1 +
+
+ +---- + +===Suspicious rundll32 activity=== +Monitor and detect techniques used by attackers who leverage rundll32.exe to execute arbitrary malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1218.011/ T1218.011], [https://attack.mitre.org/techniques/T1003.001/ T1003.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-02-03 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_rundll32_application_control_bypass_-_advpack|Detect Rundll32 Application Control Bypass - advpack]] + +* [[Documentation:ESSOC:detections:Detections#Detect_rundll32_application_control_bypass_-_setupapi|Detect Rundll32 Application Control Bypass - setupapi]] + +* [[Documentation:ESSOC:detections:Detections#Detect_rundll32_application_control_bypass_-_syssetup|Detect Rundll32 Application Control Bypass - syssetup]] + +* [[Documentation:ESSOC:detections:Detections#Dump_lsass_via_comsvcs_dll|Dump LSASS via comsvcs DLL]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_rename|Suspicious Rundll32 Rename]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_startw|Suspicious Rundll32 StartW]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_dllregisterserver|Suspicious Rundll32 dllregisterserver]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_rundll32_no_commandline_arguments|Suspicious Rundll32 no CommandLine Arguments]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|- +| T1003.001 +| LSASS Memory +| Credential Access +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/techniques/T1218/011/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.011/T1218.011.md + +* https://lolbas-project.github.io/lolbas/Binaries/Rundll32 + + +''version'': 1 +
+
+ +---- + +===Suspicious wmi use=== +Attackers are increasingly abusing Windows Management Instrumentation (WMI), a framework and associated utilities available on all modern Windows operating systems. Because WMI can be leveraged to manage both local and remote systems, it is important to identify the processes executed and the user context within which the activity occurred. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1047/ T1047], [https://attack.mitre.org/techniques/T1546.003/ T1546.003] +* '''Last Updated''': 2018-10-23 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Process_execution_via_wmi|Process Execution via WMI]] + +* [[Documentation:ESSOC:detections:Detections#Remote_process_instantiation_via_wmi|Remote Process Instantiation via WMI]] + +* [[Documentation:ESSOC:detections:Detections#Remote_wmi_command_attempt|Remote WMI Command Attempt]] + +* [[Documentation:ESSOC:detections:Detections#Script_execution_via_wmi|Script Execution via WMI]] + +* [[Documentation:ESSOC:detections:Detections#Wmi_permanent_event_subscription|WMI Permanent Event Subscription]] + +* [[Documentation:ESSOC:detections:Detections#Wmi_permanent_event_subscription_-_sysmon|WMI Permanent Event Subscription - Sysmon]] + +* [[Documentation:ESSOC:detections:Detections#Wmi_temporary_event_subscription|WMI Temporary Event Subscription]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1047 +| Windows Management Instrumentation +| Execution +|- +| T1546.003 +| Windows Management Instrumentation Event Subscription +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.blackhat.com/docs/us-15/materials/us-15-Graeber-Abusing-Windows-Management-Instrumentation-WMI-To-Build-A-Persistent%20Asynchronous-And-Fileless-Backdoor-wp.pdf + +* https://www.fireeye.com/blog/threat-research/2017/03/wmimplant_a_wmi_ba.html + + +''version'': 2 +
+
+ +---- + +===Suspicious windows registry activities=== +Monitor and detect registry changes initiated from remote locations, which can be a sign that an attacker has infiltrated your system. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1548.002/ T1548.002], [https://attack.mitre.org/techniques/T1222.001/ T1222.001], [https://attack.mitre.org/techniques/T1547.010/ T1547.010], [https://attack.mitre.org/techniques/T1564.001/ T1564.001], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1546.012/ T1546.012], [https://attack.mitre.org/techniques/T1546.011/ T1546.011], [https://attack.mitre.org/techniques/T1546.001/ T1546.001], [https://attack.mitre.org/techniques/T1112/ T1112] +* '''Last Updated''': 2018-05-31 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Disabling_remote_user_account_control|Disabling Remote User Account Control]] + +* [[Documentation:ESSOC:detections:Detections#Monitor_registry_keys_for_print_monitors|Monitor Registry Keys for Print Monitors]] + +* [[Documentation:ESSOC:detections:Detections#Reg_exe_used_to_hide_files_directories_via_registry_keys|Reg exe used to hide files directories via registry keys]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_privilege_escalation|Registry Keys Used For Privilege Escalation]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_for_creating_shim_databases|Registry Keys for Creating SHIM Databases]] + +* [[Documentation:ESSOC:detections:Detections#Remote_registry_key_modifications|Remote Registry Key modifications]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_changes_to_file_associations|Suspicious Changes to File Associations]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1548.002 +| Bypass User Account Control +| Defense Evasion, Privilege Escalation +|- +| T1222.001 +| Windows File and Directory Permissions Modification +| Defense Evasion +|- +| T1547.010 +| Port Monitors +| Persistence, Privilege Escalation +|- +| T1564.001 +| Hidden Files and Directories +| Defense Evasion +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1546.012 +| Image File Execution Options Injection +| Persistence, Privilege Escalation +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|- +| T1546.001 +| Change Default File Association +| Persistence, Privilege Escalation +|- +| T1112 +| Modify Registry +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://redcanary.com/blog/windows-registry-attacks-threat-detection/ + +* https://attack.mitre.org/wiki/Technique/T1112 + + +''version'': 1 +
+
+ +---- + +===Suspicious zoom child processes=== +Attackers are using Zoom as an vector to increase privileges on a sytems. This story detects new child processes of zoom and provides investigative actions for this detection. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2020-04-13 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_prohibited_applications_spawning_cmd_exe|Detect Prohibited Applications Spawning cmd exe]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_child_process_of_zoom|First Time Seen Child Process of Zoom]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Exploitation + + +====Reference==== + +* https://blog.rapid7.com/2020/04/02/dispelling-zoom-bugbears-what-you-need-to-know-about-the-latest-zoom-vulnerabilities/ + +* https://threatpost.com/two-zoom-zero-day-flaws-uncovered/154337/ + + +''version'': 1 +
+
+ +---- + +===Trusted developer utilities proxy execution=== +Monitor and detect behaviors used by attackers who leverage trusted developer utilities to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127/ T1127], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-01-12 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Suspicious_microsoft_workflow_compiler_rename|Suspicious microsoft workflow compiler rename]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_microsoft_workflow_compiler_usage|Suspicious microsoft workflow compiler usage]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127 +| Trusted Developer Utilities Proxy Execution +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Reference==== + +* https://attack.mitre.org/techniques/T1127/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md + +* https://lolbas-project.github.io/lolbas/Binaries/Microsoft.Workflow.Compiler/ + + +''version'': 1 +
+
+ +---- + +===Trusted developer utilities proxy execution msbuild=== +Monitor and detect techniques used by attackers who leverage the msbuild.exe process to execute malicious code. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1127.001/ T1127.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003] +* '''Last Updated''': 2021-01-21 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Suspicious_msbuild_rename|Suspicious MSBuild Rename]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_msbuild_spawn|Suspicious MSBuild Spawn]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_msbuild_path|Suspicious msbuild path]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1127.001 +| MSBuild +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Reference==== + +* https://attack.mitre.org/techniques/T1127/001/ + +* https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1127.001/T1127.001.md + +* https://github.com/infosecn1nja/MaliciousMacroMSBuild + +* https://github.com/xorrior/RandomPS-Scripts/blob/master/Invoke-ExecuteMSBuild.ps1 + +* https://lolbas-project.github.io/lolbas/Binaries/Msbuild/ + +* https://github.com/MHaggis/CBR-Queries/blob/master/msbuild.md + + +''version'': 1 +
+
+ +---- + +===Windows dns sigred cve-2020-1350=== +Uncover activity consistent with CVE-2020-1350, or SIGRed. Discovered by Checkpoint researchers, this vulnerability affects Windows 2003 to 2019, and is triggered by a malicious DNS response (only affects DNS over TCP). An attacker can use the malicious payload to cause a buffer overflow on the vulnerable system, leading to compromise. The included searches in this Analytic Story are designed to identify the large response payload for SIG and KEY DNS records which can be used for the exploit. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1203/ T1203] +* '''Last Updated''': 2020-07-28 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_windows_dns_sigred_via_splunk_stream|Detect Windows DNS SIGRed via Splunk Stream]] + +* [[Documentation:ESSOC:detections:Detections#Detect_windows_dns_sigred_via_zeek|Detect Windows DNS SIGRed via Zeek]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1203 +| Exploitation for Client Execution +| Execution +|} + + +====Kill Chain Phase==== + +* Exploitation + + +====Reference==== + +* https://research.checkpoint.com/2020/resolving-your-way-into-domain-admin-exploiting-a-17-year-old-bug-in-windows-dns-servers/ + +* https://support.microsoft.com/en-au/help/4569509/windows-dns-server-remote-code-execution-vulnerability + + +''version'': 1 +
+
+ +---- + +===Windows defense evasion tactics=== +Detect tactics used by malware to evade defenses on Windows endpoints. A few of these include suspicious `reg.exe` processes, files hidden with `attrib.exe` and disabling user-account control, among many others + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1548.002/ T1548.002], [https://attack.mitre.org/techniques/T1222.001/ T1222.001], [https://attack.mitre.org/techniques/T1547.010/ T1547.010], [https://attack.mitre.org/techniques/T1564.001/ T1564.001], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1546.012/ T1546.012], [https://attack.mitre.org/techniques/T1546.011/ T1546.011], [https://attack.mitre.org/techniques/T1546.001/ T1546.001], [https://attack.mitre.org/techniques/T1112/ T1112] +* '''Last Updated''': 2018-05-31 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Disabling_remote_user_account_control|Disabling Remote User Account Control]] + +* [[Documentation:ESSOC:detections:Detections#Hiding_files_and_directories_with_attrib_exe|Hiding Files And Directories With Attrib exe]] + +* [[Documentation:ESSOC:detections:Detections#Reg_exe_used_to_hide_files_directories_via_registry_keys|Reg exe used to hide files directories via registry keys]] + +* [[Documentation:ESSOC:detections:Detections#Remote_registry_key_modifications|Remote Registry Key modifications]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_reg_exe_process|Suspicious Reg exe Process]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1548.002 +| Bypass User Account Control +| Defense Evasion, Privilege Escalation +|- +| T1222.001 +| Windows File and Directory Permissions Modification +| Defense Evasion +|- +| T1547.010 +| Port Monitors +| Persistence, Privilege Escalation +|- +| T1564.001 +| Hidden Files and Directories +| Defense Evasion +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1546.012 +| Image File Execution Options Injection +| Persistence, Privilege Escalation +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|- +| T1546.001 +| Change Default File Association +| Persistence, Privilege Escalation +|- +| T1112 +| Modify Registry +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://attack.mitre.org/wiki/Defense_Evasion + + +''version'': 1 +
+
+ +---- + +===Windows log manipulation=== +Adversaries often try to cover their tracks by manipulating Windows logs. Use these searches to help you monitor for suspicious activity surrounding log files--an essential component of an effective defense. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490], [https://attack.mitre.org/techniques/T1070.001/ T1070.001], [https://attack.mitre.org/techniques/T1070/ T1070] +* '''Last Updated''': 2017-09-12 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Deleting_shadow_copies|Deleting Shadow Copies]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_wevtutil_usage|Suspicious wevtutil Usage]] + +* [[Documentation:ESSOC:detections:Detections#Usn_journal_deletion|USN Journal Deletion]] + +* [[Documentation:ESSOC:detections:Detections#Windows_event_log_cleared|Windows Event Log Cleared]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|- +| T1070.001 +| Clear Windows Event Logs +| Defense Evasion +|- +| T1070 +| Indicator Removal on Host +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + +* https://zeltser.com/security-incident-log-review-checklist/ + +* http://journeyintoir.blogspot.com/2013/01/re-introducing-usnjrnl.html + + +''version'': 2 +
+
+ +---- + +===Windows persistence techniques=== +Monitor for activities and techniques associated with maintaining persistence on a Windows system--a sign that an adversary may have compromised your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1574.009/ T1574.009], [https://attack.mitre.org/techniques/T1222.001/ T1222.001], [https://attack.mitre.org/techniques/T1547.010/ T1547.010], [https://attack.mitre.org/techniques/T1574.011/ T1574.011], [https://attack.mitre.org/techniques/T1564.001/ T1564.001], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1546.011/ T1546.011], [https://attack.mitre.org/techniques/T1543.003/ T1543.003], [https://attack.mitre.org/techniques/T1053.005/ T1053.005] +* '''Last Updated''': 2018-05-31 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Certutil_exe_certificate_extraction|Certutil exe certificate extraction]] + +* [[Documentation:ESSOC:detections:Detections#Detect_path_interception_by_creation_of_program_exe|Detect Path Interception By Creation Of program exe]] + +* [[Documentation:ESSOC:detections:Detections#Hiding_files_and_directories_with_attrib_exe|Hiding Files And Directories With Attrib exe]] + +* [[Documentation:ESSOC:detections:Detections#Monitor_registry_keys_for_print_monitors|Monitor Registry Keys for Print Monitors]] + +* [[Documentation:ESSOC:detections:Detections#Reg_exe_manipulating_windows_services_registry_keys|Reg exe Manipulating Windows Services Registry Keys]] + +* [[Documentation:ESSOC:detections:Detections#Reg_exe_used_to_hide_files_directories_via_registry_keys|Reg exe used to hide files directories via registry keys]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_for_creating_shim_databases|Registry Keys for Creating SHIM Databases]] + +* [[Documentation:ESSOC:detections:Detections#Remote_registry_key_modifications|Remote Registry Key modifications]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + +* [[Documentation:ESSOC:detections:Detections#Schtasks_used_for_forcing_a_reboot|Schtasks used for forcing a reboot]] + +* [[Documentation:ESSOC:detections:Detections#Shim_database_file_creation|Shim Database File Creation]] + +* [[Documentation:ESSOC:detections:Detections#Shim_database_installation_with_suspicious_parameters|Shim Database Installation With Suspicious Parameters]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1574.009 +| Path Interception by Unquoted Path +| Defense Evasion, Persistence, Privilege Escalation +|- +| T1222.001 +| Windows File and Directory Permissions Modification +| Defense Evasion +|- +| T1547.010 +| Port Monitors +| Persistence, Privilege Escalation +|- +| T1574.011 +| Services Registry Permissions Weakness +| Defense Evasion, Persistence, Privilege Escalation +|- +| T1564.001 +| Hidden Files and Directories +| Defense Evasion +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1546.011 +| Application Shimming +| Persistence, Privilege Escalation +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Installation + + +====Reference==== + +* http://www.fuzzysecurity.com/tutorials/19.html + +* https://www.fireeye.com/blog/threat-research/2010/07/malware-persistence-windows-registry.html + +* http://resources.infosecinstitute.com/common-malware-persistence-mechanisms/ + +* https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html + +* https://www.youtube.com/watch?v=dq2Hv7J9fvk + + +''version'': 2 +
+
+ +---- + +===Windows privilege escalation=== +Monitor for and investigate activities that may be associated with a Windows privilege-escalation attack, including unusual processes running on endpoints, modified registry keys, and more. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1068/ T1068], [https://attack.mitre.org/techniques/T1546.008/ T1546.008], [https://attack.mitre.org/techniques/T1546.012/ T1546.012], [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Child_processes_of_spoolsv_exe|Child Processes of Spoolsv exe]] + +* [[Documentation:ESSOC:detections:Detections#Overwriting_accessibility_binaries|Overwriting Accessibility Binaries]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_privilege_escalation|Registry Keys Used For Privilege Escalation]] + +* [[Documentation:ESSOC:detections:Detections#Uncommon_processes_on_endpoint|Uncommon Processes On Endpoint]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1068 +| Exploitation for Privilege Escalation +| Privilege Escalation +|- +| T1546.008 +| Accessibility Features +| Persistence, Privilege Escalation +|- +| T1546.012 +| Image File Execution Options Injection +| Persistence, Privilege Escalation +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Exploitation + + +====Reference==== + +* https://attack.mitre.org/tactics/TA0004/ + + +''version'': 2 +
+
+ +---- + + + +==Best Practices== + + +===Asset tracking=== +Keep a careful inventory of every asset on your network to make it easier to detect rogue devices. Unauthorized/unmanaged devices could be an indication of malicious behavior that should be investigated further. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Sessions +* '''ATT&CK''': +* '''Last Updated''': 2017-09-13 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_unauthorized_assets_by_mac_address|Detect Unauthorized Assets by MAC address]] + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Delivery + +* Reconnaissance + + +====Reference==== + +* https://www.cisecurity.org/controls/inventory-of-authorized-and-unauthorized-devices/ + + +''version'': 1 +
+
+ +---- + +===Monitor backup solution=== +Address common concerns when monitoring your backup processes. These searches can help you reduce risks from ransomware, device theft, or denial of physical access to a host by backing up data on endpoints. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-09-12 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Extended_period_without_successful_netbackup_backups|Extended Period Without Successful Netbackup Backups]] + +* [[Documentation:ESSOC:detections:Detections#Unsuccessful_netbackup_backups|Unsuccessful Netbackup backups]] + + + + +====Kill Chain Phase==== + + +====Reference==== + +* https://www.carbonblack.com/2016/03/04/tracking-locky-ransomware-using-carbon-black/ + + +''version'': 1 +
+
+ +---- + +===Monitor for unauthorized software=== +Identify and investigate prohibited/unauthorized software or processes that may be concealing malicious behavior within your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': +* '''Last Updated''': 2017-09-15 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Prohibited_software_on_endpoint|Prohibited Software On Endpoint]] + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/ + + +''version'': 1 +
+
+ +---- + +===Monitor for updates=== +Monitor your enterprise to ensure that your endpoints are being patched and updated. Adversaries notoriously exploit known vulnerabilities that could be mitigated by applying routine security patches. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Updates +* '''ATT&CK''': +* '''Last Updated''': 2017-09-15 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#No_windows_updates_in_a_time_frame|No Windows Updates in a time frame]] + + + + +====Kill Chain Phase==== + + +====Reference==== + +* https://learn.cisecurity.org/20-controls-download + + +''version'': 1 +
+
+ +---- + +===Prohibited traffic allowed or protocol mismatch=== +Detect instances of prohibited network traffic allowed in the environment, as well as protocols running on non-standard ports. Both of these types of behaviors typically violate policy and can be leveraged by attackers. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1048/ T1048] +* '''Last Updated''': 2017-09-11 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + +* [[Documentation:ESSOC:detections:Detections#Prohibited_network_traffic_allowed|Prohibited Network Traffic Allowed]] + +* [[Documentation:ESSOC:detections:Detections#Protocol_or_port_mismatch|Protocol or Port Mismatch]] + +* [[Documentation:ESSOC:detections:Detections#Tor_traffic|TOR Traffic]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Delivery + + +====Reference==== + +* http://www.novetta.com/2015/02/advanced-methods-to-detect-advanced-cyber-attacks-protocol-abuse/ + + +''version'': 1 +
+
+ +---- + +===Router and infrastructure security=== +Validate the security configuration of network infrastructure and verify that only authorized users and systems are accessing critical assets. Core routing and switching infrastructure are common strategic targets for attackers. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1200/ T1200], [https://attack.mitre.org/techniques/T1498/ T1498], [https://attack.mitre.org/techniques/T1557.002/ T1557.002], [https://attack.mitre.org/techniques/T1557/ T1557], [https://attack.mitre.org/techniques/T1542.005/ T1542.005], [https://attack.mitre.org/techniques/T1020.001/ T1020.001] +* '''Last Updated''': 2017-09-12 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_arp_poisoning|Detect ARP Poisoning]] + +* [[Documentation:ESSOC:detections:Detections#Detect_ipv6_network_infrastructure_threats|Detect IPv6 Network Infrastructure Threats]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_login_attempts_to_routers|Detect New Login Attempts to Routers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_port_security_violation|Detect Port Security Violation]] + +* [[Documentation:ESSOC:detections:Detections#Detect_rogue_dhcp_server|Detect Rogue DHCP Server]] + +* [[Documentation:ESSOC:detections:Detections#Detect_software_download_to_network_device|Detect Software Download To Network Device]] + +* [[Documentation:ESSOC:detections:Detections#Detect_traffic_mirroring|Detect Traffic Mirroring]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1200 +| Hardware Additions +| Initial Access +|- +| T1498 +| Network Denial of Service +| Impact +|- +| T1557.002 +| ARP Cache Poisoning +| Collection, Credential Access +|- +| T1557 +| Man-in-the-Middle +| Collection, Credential Access +|- +| T1542.005 +| TFTP Boot +| Defense Evasion, Persistence +|- +| T1020.001 +| Traffic Duplication +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Delivery + +* Exploitation + +* Reconnaissance + + +====Reference==== + +* https://www.fireeye.com/blog/executive-perspective/2015/09/the_new_route_toper.html + +* https://www.cisco.com/c/en/us/about/security-center/event-response/synful-knock.html + + +''version'': 1 +
+
+ +---- + +===Use of cleartext protocols=== +Leverage searches that detect cleartext network protocols that may leak credentials or should otherwise be encrypted. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Traffic +* '''ATT&CK''': +* '''Last Updated''': 2017-09-15 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Protocols_passing_authentication_in_cleartext|Protocols passing authentication in cleartext]] + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Reconnaissance + + +====Reference==== + +* https://www.monkey.org/~dugsong/dsniff/ + + +''version'': 1 +
+
+ +---- + + + +==Cloud Security== + + +===Aws cross account activity=== +Track when a user assumes an IAM role in another AWS account to obtain cross-account access to services and resources in that account. Accessing new roles could be an indication of malicious activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1550/ T1550] +* '''Last Updated''': 2018-06-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_attach_to_role_policy|aws detect attach to role policy]] + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_permanent_key_creation|aws detect permanent key creation]] + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_role_creation|aws detect role creation]] + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_sts_assume_role_abuse|aws detect sts assume role abuse]] + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_sts_get_session_token_abuse|aws detect sts get session token abuse]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1550 +| Use Alternate Authentication Material +| Defense Evasion, Lateral Movement +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Reference==== + +* https://aws.amazon.com/blogs/security/aws-cloudtrail-now-tracks-cross-account-activity-to-its-origin/ + + +''version'': 1 +
+
+ +---- + +===Aws cryptomining=== +Monitor your AWS EC2 instances for activities related to cryptojacking/cryptomining. New instances that originate from previously unseen regions, users who launch abnormally high numbers of instances, or EC2 instances started by previously unseen users are just a few examples of potentially malicious behavior. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004], [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-03-08 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_launched_by_user|Abnormally High AWS Instances Launched by User]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_launched_by_user_-_mltk|Abnormally High AWS Instances Launched by User - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_in_previously_unseen_region|EC2 Instance Started In Previously Unseen Region]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_with_previously_unseen_ami|EC2 Instance Started With Previously Unseen AMI]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_with_previously_unseen_instance_type|EC2 Instance Started With Previously Unseen Instance Type]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_with_previously_unseen_user|EC2 Instance Started With Previously Unseen User]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Aws network acl activity=== +Monitor your AWS network infrastructure for bad configurations and malicious activity. Investigative searches help you probe deeper, when the facts warrant it. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1562.007/ T1562.007] +* '''Last Updated''': 2018-05-21 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_network_access_control_list_created_with_all_open_ports|AWS Network Access Control List Created with All Open Ports]] + +* [[Documentation:ESSOC:detections:Detections#Aws_network_access_control_list_deleted|AWS Network Access Control List Deleted]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_network_acl_activity|Detect Spike in Network ACL Activity]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_blocked_outbound_traffic_from_your_aws|Detect Spike in blocked Outbound Traffic from your AWS]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_NACLs.html + +* https://aws.amazon.com/blogs/security/how-to-help-prepare-for-ddos-attacks-by-reducing-your-attack-surface/ + + +''version'': 2 +
+
+ +---- + +===Aws security hub alerts=== +This story is focused around detecting Security Hub alerts generated from AWS + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-08-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_aws_security_hub_alerts_for_ec2_instance|Detect Spike in AWS Security Hub Alerts for EC2 Instance]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_aws_security_hub_alerts_for_user|Detect Spike in AWS Security Hub Alerts for User]] + + + + +====Kill Chain Phase==== + + +====Reference==== + +* https://aws.amazon.com/security-hub/features/ + + +''version'': 1 +
+
+ +---- + +===Aws suspicious provisioning activities=== +Monitor your AWS provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your network. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-03-16 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_cloud_provisioning_from_previously_unseen_city|AWS Cloud Provisioning From Previously Unseen City]] + +* [[Documentation:ESSOC:detections:Detections#Aws_cloud_provisioning_from_previously_unseen_country|AWS Cloud Provisioning From Previously Unseen Country]] + +* [[Documentation:ESSOC:detections:Detections#Aws_cloud_provisioning_from_previously_unseen_ip_address|AWS Cloud Provisioning From Previously Unseen IP Address]] + +* [[Documentation:ESSOC:detections:Detections#Aws_cloud_provisioning_from_previously_unseen_region|AWS Cloud Provisioning From Previously Unseen Region]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Aws user monitoring=== +Detect and investigate dormant user accounts for your AWS environment that have become active again. Because inactive and ad-hoc accounts are common attack targets, it's critical to enable governance within your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2018-03-12 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_api_activity_from_users_without_mfa|Detect API activity from users without MFA]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_api_activities_from_unapproved_accounts|Detect AWS API Activities From Unapproved Accounts]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_aws_api_activity|Detect Spike in AWS API Activity]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_security_group_activity|Detect Spike in Security Group Activity]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_api_calls_from_user_roles|Detect new API calls from user roles]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://redlock.io/blog/cryptojacking-tesla + + +''version'': 1 +
+
+ +---- + +===Cloud cryptomining=== +Monitor your cloud compute instances for activities related to cryptojacking/cryptomining. New instances that originate from previously unseen regions, users who launch abnormally high numbers of instances, or compute instances started by previously unseen users are just a few examples of potentially malicious behavior. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004], [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2019-10-02 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_number_of_cloud_instances_launched|Abnormally High Number Of Cloud Instances Launched]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_compute_instance_created_by_previously_unseen_user|Cloud Compute Instance Created By Previously Unseen User]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_compute_instance_created_in_previously_unused_region|Cloud Compute Instance Created In Previously Unused Region]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_compute_instance_created_with_previously_unseen_image|Cloud Compute Instance Created With Previously Unseen Image]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_compute_instance_created_with_previously_unseen_instance_type|Cloud Compute Instance Created With Previously Unseen Instance Type]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Cloud federated credential abuse=== +This analytical story addresses events that indicate abuse of cloud federated credentials. These credentials are usually extracted from endpoint desktop or servers specially those servers that provide federation services such as Windows Active Directory Federation Services. Identity Federation relies on objects such as Oauth2 tokens, cookies or SAML assertions in order to provide seamless access between cloud and perimeter environments. If these objects are either hijacked or forged then attackers will be able to pivot into victim's cloud environements. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078], [https://attack.mitre.org/techniques/T1003.001/ T1003.001], [https://attack.mitre.org/techniques/T1136.003/ T1136.003], [https://attack.mitre.org/techniques/T1556/ T1556], [https://attack.mitre.org/techniques/T1546.012/ T1546.012], [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2021-01-26 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_saml_access_by_provider_user_and_principal|AWS SAML Access by Provider User and Principal]] + +* [[Documentation:ESSOC:detections:Detections#Aws_saml_update_identity_provider|AWS SAML Update identity provider]] + +* [[Documentation:ESSOC:detections:Detections#Certutil_exe_certificate_extraction|Certutil exe certificate extraction]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mimikatz_using_loaded_images|Detect Mimikatz Using Loaded Images]] + +* [[Documentation:ESSOC:detections:Detections#Detect_mimikatz_via_powershell_and_eventcode_4703|Detect Mimikatz Via PowerShell And EventCode 4703]] + +* [[Documentation:ESSOC:detections:Detections#Detect_rare_executables|Detect Rare Executables]] + +* [[Documentation:ESSOC:detections:Detections#O365_add_app_role_assignment_grant_user|O365 Add App Role Assignment Grant User]] + +* [[Documentation:ESSOC:detections:Detections#O365_added_service_principal|O365 Added Service Principal]] + +* [[Documentation:ESSOC:detections:Detections#O365_excessive_sso_logon_errors|O365 Excessive SSO logon errors]] + +* [[Documentation:ESSOC:detections:Detections#O365_new_federated_domain_added|O365 New Federated Domain Added]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_privilege_escalation|Registry Keys Used For Privilege Escalation]] + +* [[Documentation:ESSOC:detections:Detections#Uncommon_processes_on_endpoint|Uncommon Processes On Endpoint]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1003.001 +| LSASS Memory +| Credential Access +|- +| T1136.003 +| Cloud Account +| Persistence +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|- +| T1546.012 +| Image File Execution Options Injection +| Persistence, Privilege Escalation +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objective + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps + +* https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/wp-m-unc2452-2021-000343-01.pdf + +* https://us-cert.cisa.gov/ncas/alerts/aa21-008a + + +''version'': 1 +
+
+ +---- + +===Container implantation monitoring and investigation=== +Use the searches in this story to monitor your Kubernetes registry repositories for upload, and deployment of potentially vulnerable, backdoor, or implanted containers. These searches provide information on source users, destination path, container names and repository names. The searches provide context to address Mitre T1525 which refers to container implantation upload to a company's repository either in Amazon Elastic Container Registry, Google Container Registry and Azure Container Registry. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1525/ T1525] +* '''Last Updated''': 2020-02-20 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Gcp_gcr_container_uploaded|GCP GCR container uploaded]] + +* [[Documentation:ESSOC:detections:Detections#New_container_uploaded_to_aws_ecr|New container uploaded to AWS ECR]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1525 +| Implant Container Image +| Persistence +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://github.com/splunk/cloud-datamodel-security-research + + +''version'': 1 +
+
+ +---- + +===Gcp cross account activity=== +Track when a user assumes an IAM role in another GCP account to obtain cross-account access to services and resources in that account. Accessing new roles could be an indication of malicious activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-09-01 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Gcp_detect_accounts_with_high_risk_roles_by_project|GCP Detect accounts with high risk roles by project]] + +* [[Documentation:ESSOC:detections:Detections#Gcp_detect_gcploit_framework|GCP Detect gcploit framework]] + +* [[Documentation:ESSOC:detections:Detections#Gcp_detect_high_risk_permissions_by_resource_and_account|GCP Detect high risk permissions by resource and account]] + +* [[Documentation:ESSOC:detections:Detections#Gcp_detect_oauth_token_abuse|gcp detect oauth token abuse]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Reference==== + +* https://cloud.google.com/iam/docs/understanding-service-accounts + + +''version'': 1 +
+
+ +---- + +===Kubernetes scanning activity=== +This story addresses detection against Kubernetes cluster fingerprint scan and attack by providing information on items such as source ip, user agent, cluster names. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1526/ T1526] +* '''Last Updated''': 2020-04-15 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Amazon_eks_kubernetes_pod_scan_detection|Amazon EKS Kubernetes Pod scan detection]] + +* [[Documentation:ESSOC:detections:Detections#Amazon_eks_kubernetes_cluster_scan_detection|Amazon EKS Kubernetes cluster scan detection]] + +* [[Documentation:ESSOC:detections:Detections#Gcp_kubernetes_cluster_pod_scan_detection|GCP Kubernetes cluster pod scan detection]] + +* [[Documentation:ESSOC:detections:Detections#Gcp_kubernetes_cluster_scan_detection|GCP Kubernetes cluster scan detection]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_pod_scan_fingerprint|Kubernetes Azure pod scan fingerprint]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_scan_fingerprint|Kubernetes Azure scan fingerprint]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1526 +| Cloud Service Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Reconnaissance + + +====Reference==== + +* https://github.com/splunk/cloud-datamodel-security-research + + +''version'': 1 +
+
+ +---- + +===Kubernetes sensitive object access activity=== +This story addresses detection and response of accounts acccesing Kubernetes cluster sensitive objects such as configmaps or secrets providing information on items such as user user, group. object, namespace and authorization reason. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_eks_kubernetes_cluster_sensitive_object_access|AWS EKS Kubernetes cluster sensitive object access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_aws_detect_service_accounts_forbidden_failure_access|Kubernetes AWS detect service accounts forbidden failure access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_aws_detect_suspicious_kubectl_calls|Kubernetes AWS detect suspicious kubectl calls]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_sensitive_object_access|Kubernetes Azure detect sensitive object access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_service_accounts_forbidden_failure_access|Kubernetes Azure detect service accounts forbidden failure access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_suspicious_kubectl_calls|Kubernetes Azure detect suspicious kubectl calls]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_sensitive_object_access|Kubernetes GCP detect sensitive object access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_service_accounts_forbidden_failure_access|Kubernetes GCP detect service accounts forbidden failure access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_suspicious_kubectl_calls|Kubernetes GCP detect suspicious kubectl calls]] + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Reference==== + +* https://www.splunk.com/en_us/blog/security/approaching-kubernetes-security-detecting-kubernetes-scan-with-splunk.html + + +''version'': 1 +
+
+ +---- + +===Kubernetes sensitive role activity=== +This story addresses detection and response around Sensitive Role usage within a Kubernetes clusters against cluster resources and namespaces. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2020-05-20 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_aws_detect_rbac_authorization_by_account|Kubernetes AWS detect RBAC authorization by account]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_aws_detect_most_active_service_accounts_by_pod|Kubernetes AWS detect most active service accounts by pod]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_aws_detect_sensitive_role_access|Kubernetes AWS detect sensitive role access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_rbac_authorization_by_account|Kubernetes Azure detect RBAC authorization by account]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_most_active_service_accounts_by_pod_namespace|Kubernetes Azure detect most active service accounts by pod namespace]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_azure_detect_sensitive_role_access|Kubernetes Azure detect sensitive role access]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_rbac_authorizations_by_account|Kubernetes GCP detect RBAC authorizations by account]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_most_active_service_accounts_by_pod|Kubernetes GCP detect most active service accounts by pod]] + +* [[Documentation:ESSOC:detections:Detections#Kubernetes_gcp_detect_sensitive_role_access|Kubernetes GCP detect sensitive role access]] + + + + +====Kill Chain Phase==== + +* Lateral Movement + + +====Reference==== + +* https://www.splunk.com/en_us/blog/security/approaching-kubernetes-security-detecting-kubernetes-scan-with-splunk.html + + +''version'': 1 +
+
+ +---- + +===Office 365 detections=== +This story is focused around detecting Office 365 Attacks. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1110.001/ T1110.001], [https://attack.mitre.org/techniques/T1136.003/ T1136.003], [https://attack.mitre.org/techniques/T1562.007/ T1562.007], [https://attack.mitre.org/techniques/T1556/ T1556], [https://attack.mitre.org/techniques/T1110/ T1110], [https://attack.mitre.org/techniques/T1114/ T1114], [https://attack.mitre.org/techniques/T1114.003/ T1114.003], [https://attack.mitre.org/techniques/T1114.002/ T1114.002] +* '''Last Updated''': 2020-12-16 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#High_number_of_login_failures_from_a_single_source|High Number of Login Failures from a single source]] + +* [[Documentation:ESSOC:detections:Detections#O365_add_app_role_assignment_grant_user|O365 Add App Role Assignment Grant User]] + +* [[Documentation:ESSOC:detections:Detections#O365_added_service_principal|O365 Added Service Principal]] + +* [[Documentation:ESSOC:detections:Detections#O365_bypass_mfa_via_trusted_ip|O365 Bypass MFA via Trusted IP]] + +* [[Documentation:ESSOC:detections:Detections#O365_disable_mfa|O365 Disable MFA]] + +* [[Documentation:ESSOC:detections:Detections#O365_excessive_authentication_failures_alert|O365 Excessive Authentication Failures Alert]] + +* [[Documentation:ESSOC:detections:Detections#O365_excessive_sso_logon_errors|O365 Excessive SSO logon errors]] + +* [[Documentation:ESSOC:detections:Detections#O365_new_federated_domain_added|O365 New Federated Domain Added]] + +* [[Documentation:ESSOC:detections:Detections#O365_pst_export_alert|O365 PST export alert]] + +* [[Documentation:ESSOC:detections:Detections#O365_suspicious_admin_email_forwarding|O365 Suspicious Admin Email Forwarding]] + +* [[Documentation:ESSOC:detections:Detections#O365_suspicious_rights_delegation|O365 Suspicious Rights Delegation]] + +* [[Documentation:ESSOC:detections:Detections#O365_suspicious_user_email_forwarding|O365 Suspicious User Email Forwarding]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1110.001 +| Password Guessing +| Credential Access +|- +| T1136.003 +| Cloud Account +| Persistence +|- +| T1562.007 +| Disable or Modify Cloud Firewall +| Defense Evasion +|- +| T1556 +| Modify Authentication Process +| Credential Access, Defense Evasion +|- +| T1110 +| Brute Force +| Credential Access +|- +| T1114 +| Email Collection +| Collection +|- +| T1114.003 +| Email Forwarding Rule +| Collection +|- +| T1114.002 +| Remote Email Collection +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objective + +* Actions on Objectives + +* Not Applicable + + +====Reference==== + +* https://i.blackhat.com/USA-20/Thursday/us-20-Bienstock-My-Cloud-Is-APTs-Cloud-Investigating-And-Defending-Office-365.pdf + + +''version'': 1 +
+
+ +---- + +===Suspicious aws ec2 activities=== +Use the searches in this Analytic Story to monitor your AWS EC2 instances for evidence of anomalous activity and suspicious behaviors, such as EC2 instances that originate from unusual locations or those launched by previously unseen users (among others). Included investigative searches will help you probe more deeply, when the information warrants it. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004], [https://attack.mitre.org/techniques/T1535/ T1535] +* '''Last Updated''': 2018-02-09 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_launched_by_user|Abnormally High AWS Instances Launched by User]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_launched_by_user_-_mltk|Abnormally High AWS Instances Launched by User - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_terminated_by_user|Abnormally High AWS Instances Terminated by User]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_aws_instances_terminated_by_user_-_mltk|Abnormally High AWS Instances Terminated by User - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_in_previously_unseen_region|EC2 Instance Started In Previously Unseen Region]] + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_started_with_previously_unseen_user|EC2 Instance Started With Previously Unseen User]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Suspicious aws login activities=== +Monitor your AWS authentication events using your CloudTrail logs. Searches within this Analytic Story will help you stay aware of and investigate suspicious logins. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535], [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2019-05-01 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_city|Detect AWS Console Login by User from New City]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_country|Detect AWS Console Login by User from New Country]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_region|Detect AWS Console Login by User from New Region]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_user_aws_console_login|Detect new user AWS Console Login]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html + + +''version'': 1 +
+
+ +---- + +===Suspicious aws s3 activities=== +Use the searches in this Analytic Story to monitor your AWS S3 buckets for evidence of anomalous activity and suspicious behaviors, such as detecting open S3 buckets and buckets being accessed from a new IP. The contextual and investigative searches will give you more information, when required. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2018-07-24 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_new_open_s3_buckets_over_aws_cli|Detect New Open S3 Buckets over AWS CLI]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_open_s3_buckets|Detect New Open S3 buckets]] + +* [[Documentation:ESSOC:detections:Detections#Detect_s3_access_from_a_new_ip|Detect S3 access from a new IP]] + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_s3_bucket_deletion|Detect Spike in S3 Bucket deletion]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://www.tripwire.com/state-of-security/security-data-protection/cloud/public-aws-s3-buckets-writable/ + + +''version'': 2 +
+
+ +---- + +===Suspicious aws traffic=== +Leverage these searches to monitor your AWS network traffic for evidence of anomalous activity and suspicious behaviors, such as a spike in blocked outbound traffic in your virtual private cloud (VPC). + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-05-07 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_spike_in_blocked_outbound_traffic_from_your_aws|Detect Spike in blocked Outbound Traffic from your AWS]] + + + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://rhinosecuritylabs.com/aws/hiding-cloudcobalt-strike-beacon-c2-using-amazon-apis/ + + +''version'': 1 +
+
+ +---- + +===Suspicious cloud authentication activities=== +Monitor your cloud authentication events. Searches within this Analytic Story leverage the recent cloud updates to the Authentication data model to help you stay aware of and investigate suspicious login activity. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Authentication +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1535/ T1535], [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-06-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_cross_account_activity_from_previously_unseen_account|AWS Cross Account Activity From Previously Unseen Account]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_new_user|Detect AWS Console Login by New User]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_city|Detect AWS Console Login by User from New City]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_country|Detect AWS Console Login by User from New Country]] + +* [[Documentation:ESSOC:detections:Detections#Detect_aws_console_login_by_user_from_new_region|Detect AWS Console Login by User from New Region]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1535 +| Unused/Unsupported Cloud Regions +| Defense Evasion +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://aws.amazon.com/blogs/security/aws-cloudtrail-now-tracks-cross-account-activity-to-its-origin/ + +* https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html + + +''version'': 1 +
+
+ +---- + +===Suspicious cloud instance activities=== +Monitor your cloud infrastructure provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your cloud environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2020-08-25 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_number_of_cloud_instances_destroyed|Abnormally High Number Of Cloud Instances Destroyed]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_number_of_cloud_instances_launched|Abnormally High Number Of Cloud Instances Launched]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_instance_modified_by_previously_unseen_user|Cloud Instance Modified By Previously Unseen User]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Suspicious cloud provisioning activities=== +Monitor your cloud infrastructure provisioning activities for behaviors originating from unfamiliar or unusual locations. These behaviors may indicate that malicious activities are occurring somewhere within your cloud environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2018-08-20 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Cloud_provisioning_activity_from_previously_unseen_city|Cloud Provisioning Activity From Previously Unseen City]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_provisioning_activity_from_previously_unseen_country|Cloud Provisioning Activity From Previously Unseen Country]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_provisioning_activity_from_previously_unseen_ip_address|Cloud Provisioning Activity From Previously Unseen IP Address]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_provisioning_activity_from_previously_unseen_region|Cloud Provisioning Activity From Previously Unseen Region]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + +===Suspicious cloud user activities=== +Detect and investigate suspicious activities by users and roles in your cloud environments. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Change +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004], [https://attack.mitre.org/techniques/T1078/ T1078] +* '''Last Updated''': 2020-09-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_number_of_cloud_infrastructure_api_calls|Abnormally High Number Of Cloud Infrastructure API Calls]] + +* [[Documentation:ESSOC:detections:Detections#Abnormally_high_number_of_cloud_security_group_api_calls|Abnormally High Number Of Cloud Security Group API Calls]] + +* [[Documentation:ESSOC:detections:Detections#Cloud_api_calls_from_previously_unseen_user_roles|Cloud API Calls From Previously Unseen User Roles]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|- +| T1078 +| Valid Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + +* https://redlock.io/blog/cryptojacking-tesla + + +''version'': 1 +
+
+ +---- + +===Suspicious gcp storage activities=== +Use the searches in this Analytic Story to monitor your GCP Storage buckets for evidence of anomalous activity and suspicious behaviors, such as detecting open storage buckets and buckets being accessed from a new IP. The contextual and investigative searches will give you more information, when required. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1530/ T1530] +* '''Last Updated''': 2020-08-05 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_gcp_storage_access_from_a_new_ip|Detect GCP Storage access from a new IP]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_open_gcp_storage_buckets|Detect New Open GCP Storage Buckets]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1530 +| Data from Cloud Storage Object +| Collection +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://cloud.google.com/blog/product/gcp/4-steps-for-hardening-your-cloud-storage-buckets-taking-charge-of-your-security + +* https://rhinosecuritylabs.com/gcp/google-cloud-platform-gcp-bucket-enumeration/ + + +''version'': 1 +
+
+ +---- + +===Unusual aws ec2 modifications=== +Identify unusual changes to your AWS EC2 instances that may indicate malicious activity. Modifications to your EC2 instances by previously unseen users is an example of an activity that may warrant further investigation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1078.004/ T1078.004] +* '''Last Updated''': 2018-04-09 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Ec2_instance_modified_with_previously_unseen_user|EC2 Instance Modified With Previously Unseen User]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1078.004 +| Cloud Accounts +| Defense Evasion, Initial Access, Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://d0.awsstatic.com/whitepapers/aws-security-best-practices.pdf + + +''version'': 1 +
+
+ +---- + + + +==Malware== + + +===Coldroot macos rat=== +Leverage searches that allow you to detect and investigate unusual activities that relate to the ColdRoot Remote Access Trojan that affects MacOS. An example of some of these activities are changing sensative binaries in the MacOS sub-system, detecting process names and executables associated with the RAT, detecting when a keyboard tab is installed on a MacOS machine and more. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2019-01-09 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Osquery_pack_-_coldroot_detection|Osquery pack - ColdRoot detection]] + +* [[Documentation:ESSOC:detections:Detections#Processes_tapping_keyboard_events|Processes Tapping Keyboard Events]] + + + + +====Kill Chain Phase==== + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.intego.com/mac-security-blog/osxcoldroot-and-the-rat-invasion/ + +* https://objective-see.com/blog/blog_0x2A.html + +* https://www.bleepingcomputer.com/news/security/coldroot-rat-still-undetectable-despite-being-uploaded-on-github-two-years-ago/ + + +''version'': 1 +
+
+ +---- + +===Dhs report ta18-074a=== +Monitor for suspicious activities associated with DHS Technical Alert US-CERT TA18-074A. Some of the activities that adversaries used in these compromises included spearfishing attacks, malware, watering-hole domains, many and more. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1136.001/ T1136.001], [https://attack.mitre.org/techniques/T1071.002/ T1071.002], [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1562.004/ T1562.004], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1543.003/ T1543.003], [https://attack.mitre.org/techniques/T1053.005/ T1053.005], [https://attack.mitre.org/techniques/T1204.002/ T1204.002], [https://attack.mitre.org/techniques/T1112/ T1112] +* '''Last Updated''': 2020-01-22 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Create_local_admin_accounts_using_net_exe|Create local admin accounts using net exe]] + +* [[Documentation:ESSOC:detections:Detections#Detect_new_local_admin_account|Detect New Local Admin account]] + +* [[Documentation:ESSOC:detections:Detections#Detect_outbound_smb_traffic|Detect Outbound SMB Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Detect_psexec_with_accepteula_flag|Detect PsExec With accepteula Flag]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_command_line_argument|First time seen command line argument]] + +* [[Documentation:ESSOC:detections:Detections#Malicious_powershell_process_-_execution_policy_bypass|Malicious PowerShell Process - Execution Policy Bypass]] + +* [[Documentation:ESSOC:detections:Detections#Processes_launching_netsh|Processes launching netsh]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike|SMB Traffic Spike]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike_-_mltk|SMB Traffic Spike - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + +* [[Documentation:ESSOC:detections:Detections#Scheduled_task_deleted_or_created_via_cmd|Scheduled Task Deleted Or Created via CMD]] + +* [[Documentation:ESSOC:detections:Detections#Single_letter_process_on_endpoint|Single Letter Process On Endpoint]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_reg_exe_process|Suspicious Reg exe Process]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1136.001 +| Local Account +| Persistence +|- +| T1071.002 +| File Transfer Protocols +| Command and Control +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1562.004 +| Disable or Modify System Firewall +| Defense Evasion +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|- +| T1204.002 +| Malicious File +| Execution +|- +| T1112 +| Modify Registry +| Defense Evasion +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.us-cert.gov/ncas/alerts/TA18-074A + + +''version'': 2 +
+
+ +---- + +===Dynamic dns=== +Detect and investigate hosts in your environment that may be communicating with dynamic domain providers. Attackers may leverage these services to help them avoid firewall blocks and deny lists. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Network_Resolution, Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1189/ T1189], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1048/ T1048] +* '''Last Updated''': 2018-09-06 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_hosts_connecting_to_dynamic_domain_providers|Detect hosts connecting to dynamic domain providers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_web_traffic_to_dynamic_domain_providers|Detect web traffic to dynamic domain providers]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1189 +| Drive-by Compromise +| Initial Access +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2017/09/apt33-insights-into-iranian-cyber-espionage.html + +* https://umbrella.cisco.com/blog/2013/04/15/on-the-trail-of-malicious-dynamic-dns-domains/ + +* http://www.noip.com/blog/2014/07/11/dynamic-dns-can-use-2/ + +* https://www.splunk.com/blog/2015/08/04/detecting-dynamic-dns-domains-in-splunk.html + + +''version'': 2 +
+
+ +---- + +===Emotet malware dhs report ta18-201a === +Detect rarely used executables, specific registry paths that may confer malware survivability and persistence, instances where cmd.exe is used to launch script interpreters, and other indicators that the Emotet financial malware has compromised your environment. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Email, Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1072/ T1072], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1566.001/ T1566.001] +* '''Last Updated''': 2020-01-27 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_rare_executables|Detect Rare Executables]] + +* [[Documentation:ESSOC:detections:Detections#Detect_use_of_cmd_exe_to_launch_script_interpreters|Detect Use of cmd exe to Launch Script Interpreters]] + +* [[Documentation:ESSOC:detections:Detections#Detection_of_tools_built_by_nirsoft|Detection of tools built by NirSoft]] + +* [[Documentation:ESSOC:detections:Detections#Email_attachments_with_lots_of_spaces|Email Attachments With Lots Of Spaces]] + +* [[Documentation:ESSOC:detections:Detections#Prohibited_software_on_endpoint|Prohibited Software On Endpoint]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike|SMB Traffic Spike]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike_-_mltk|SMB Traffic Spike - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_email_attachment_extensions|Suspicious Email Attachment Extensions]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1072 +| Software Deployment Tools +| Execution, Lateral Movement +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1566.001 +| Spearphishing Attachment +| Initial Access +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Delivery + +* Exploitation + +* Installation + + +====Reference==== + +* https://www.us-cert.gov/ncas/alerts/TA18-201A + +* https://www.first.org/resources/papers/conf2017/Advanced-Incident-Detection-and-Threat-Hunting-using-Sysmon-and-Splunk.pdf + +* https://www.vkremez.com/2017/05/emotet-banking-trojan-malware-analysis.html + + +''version'': 1 +
+
+ +---- + +===Hidden cobra malware=== +Monitor for and investigate activities, including the creation or deletion of hidden shares and file writes, that may be evidence of infiltration by North Korean government-sponsored cybercriminals. Details of this activity were reported in DHS Report TA-18-149A. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Resolution, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1070.005/ T1070.005], [https://attack.mitre.org/techniques/T1071.004/ T1071.004], [https://attack.mitre.org/techniques/T1048.003/ T1048.003], [https://attack.mitre.org/techniques/T1071.002/ T1071.002], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1021.001/ T1021.001], [https://attack.mitre.org/techniques/T1021.002/ T1021.002] +* '''Last Updated''': 2020-01-22 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Create_or_delete_windows_shares_using_net_exe|Create or delete windows shares using net exe]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_outliers_-_mltk|DNS Query Length Outliers - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Dns_query_length_with_high_standard_deviation|DNS Query Length With High Standard Deviation]] + +* [[Documentation:ESSOC:detections:Detections#Detect_outbound_smb_traffic|Detect Outbound SMB Traffic]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_command_line_argument|First time seen command line argument]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_traffic|Remote Desktop Network Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_process_running_on_system|Remote Desktop Process Running On System]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike|SMB Traffic Spike]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike_-_mltk|SMB Traffic Spike - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_file_write|Suspicious File Write]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1070.005 +| Network Share Connection Removal +| Defense Evasion +|- +| T1071.004 +| DNS +| Command and Control +|- +| T1048.003 +| Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol +| Exfiltration +|- +| T1071.002 +| File Transfer Protocols +| Command and Control +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + + +====Reference==== + +* https://www.us-cert.gov/HIDDEN-COBRA-North-Korean-Malicious-Cyber-Activity + +* https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf + + +''version'': 2 +
+
+ +---- + +===Orangeworm attack group=== +Detect activities and various techniques associated with the Orangeworm Attack Group, a group that frequently targets the healthcare industry. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1569.002/ T1569.002], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1574.011/ T1574.011], [https://attack.mitre.org/techniques/T1543.003/ T1543.003] +* '''Last Updated''': 2020-01-22 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_running_windows_service|First Time Seen Running Windows Service]] + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_command_line_argument|First time seen command line argument]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1569.002 +| Service Execution +| Execution +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1574.011 +| Services Registry Permissions Weakness +| Defense Evasion, Persistence, Privilege Escalation +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.symantec.com/blogs/threat-intelligence/orangeworm-targets-healthcare-us-europe-asia + +* https://www.infosecurity-magazine.com/news/healthcare-targeted-by-hacker/ + + +''version'': 2 +
+
+ +---- + +===Ransomware=== +Leverage searches that allow you to detect and investigate unusual activities that might relate to ransomware--spikes in SMB traffic, suspicious wevtutil usage, the presence of common ransomware extensions, and system processes run from unexpected locations, and many others. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490], [https://attack.mitre.org/techniques/T1485/ T1485], [https://attack.mitre.org/techniques/T1482/ T1482], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1021.001/ T1021.001], [https://attack.mitre.org/techniques/T1047/ T1047], [https://attack.mitre.org/techniques/T1486/ T1486], [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1053.005/ T1053.005], [https://attack.mitre.org/techniques/T1070.001/ T1070.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1070/ T1070], [https://attack.mitre.org/techniques/T1562.001/ T1562.001], [https://attack.mitre.org/techniques/T1489/ T1489], [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Bcdedit_failure_recovery_modification|BCDEdit Failure Recovery Modification]] + +* [[Documentation:ESSOC:detections:Detections#Common_ransomware_extensions|Common Ransomware Extensions]] + +* [[Documentation:ESSOC:detections:Detections#Common_ransomware_notes|Common Ransomware Notes]] + +* [[Documentation:ESSOC:detections:Detections#Deleting_shadow_copies|Deleting Shadow Copies]] + +* [[Documentation:ESSOC:detections:Detections#Prohibited_network_traffic_allowed|Prohibited Network Traffic Allowed]] + +* [[Documentation:ESSOC:detections:Detections#Registry_keys_used_for_persistence|Registry Keys Used For Persistence]] + +* [[Documentation:ESSOC:detections:Detections#Remote_process_instantiation_via_wmi|Remote Process Instantiation via WMI]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike|SMB Traffic Spike]] + +* [[Documentation:ESSOC:detections:Detections#Smb_traffic_spike_-_mltk|SMB Traffic Spike - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Scheduled_tasks_used_in_badrabbit_ransomware|Scheduled tasks used in BadRabbit ransomware]] + +* [[Documentation:ESSOC:detections:Detections#Schtasks_used_for_forcing_a_reboot|Schtasks used for forcing a reboot]] + +* [[Documentation:ESSOC:detections:Detections#Spike_in_file_writes|Spike in File Writes]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_wevtutil_usage|Suspicious wevtutil Usage]] + +* [[Documentation:ESSOC:detections:Detections#System_processes_run_from_unexpected_locations|System Processes Run From Unexpected Locations]] + +* [[Documentation:ESSOC:detections:Detections#Tor_traffic|TOR Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Usn_journal_deletion|USN Journal Deletion]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line|Unusually Long Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line_-_mltk|Unusually Long Command Line - MLTK]] + +* [[Documentation:ESSOC:detections:Detections#Wbadmin_delete_system_backups|WBAdmin Delete System Backups]] + +* [[Documentation:ESSOC:detections:Detections#Windows_event_log_cleared|Windows Event Log Cleared]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|- +| T1485 +| Data Destruction +| Impact +|- +| T1482 +| Domain Trust Discovery +| Discovery +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|- +| T1047 +| Windows Management Instrumentation +| Execution +|- +| T1486 +| Data Encrypted for Impact +| Impact +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|- +| T1070.001 +| Clear Windows Event Logs +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1070 +| Indicator Removal on Host +| Defense Evasion +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|- +| T1489 +| Service Stop +| Impact +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Delivery + + +====Reference==== + +* https://www.carbonblack.com/2017/06/28/carbon-black-threat-research-technical-analysis-petya-notpetya-ransomware/ + +* https://www.splunk.com/blog/2017/06/27/closing-the-detection-to-mitigation-gap-or-to-petya-or-notpetya-whocares-.html + + +''version'': 1 +
+
+ +---- + +===Ransomware cloud=== +Leverage searches that allow you to detect and investigate unusual activities that might relate to ransomware. These searches include cloud related objects that may be targeted by malicious actors via cloud providers own encryption features. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2020-10-27 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_users_creating_keys_with_encrypt_policy_without_mfa|AWS Detect Users creating keys with encrypt policy without MFA]] + +* [[Documentation:ESSOC:detections:Detections#Aws_detect_users_with_kms_keys_performing_encryption_s3|AWS Detect Users with KMS keys performing encryption S3]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + + +====Reference==== + +* https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ + +* https://github.com/d1vious/git-wild-hunt + +* https://www.youtube.com/watch?v=PgzNib37g0M + + +''version'': 1 +
+
+ +---- + +===Ryuk ransomware=== +Leverage searches that allow you to detect and investigate unusual activities that might relate to the Ryuk ransomware, including looking for file writes associated with Ryuk, Stopping Security Access Manager, DisableAntiSpyware registry key modification, suspicious psexec use, and more. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1490/ T1490], [https://attack.mitre.org/techniques/T1485/ T1485], [https://attack.mitre.org/techniques/T1482/ T1482], [https://attack.mitre.org/techniques/T1048/ T1048], [https://attack.mitre.org/techniques/T1547.001/ T1547.001], [https://attack.mitre.org/techniques/T1021.001/ T1021.001], [https://attack.mitre.org/techniques/T1047/ T1047], [https://attack.mitre.org/techniques/T1486/ T1486], [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1053.005/ T1053.005], [https://attack.mitre.org/techniques/T1070.001/ T1070.001], [https://attack.mitre.org/techniques/T1036.003/ T1036.003], [https://attack.mitre.org/techniques/T1071.001/ T1071.001], [https://attack.mitre.org/techniques/T1070/ T1070], [https://attack.mitre.org/techniques/T1562.001/ T1562.001], [https://attack.mitre.org/techniques/T1489/ T1489], [https://attack.mitre.org/techniques/T1059.003/ T1059.003] +* '''Last Updated''': 2020-11-06 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Bcdedit_failure_recovery_modification|BCDEdit Failure Recovery Modification]] + +* [[Documentation:ESSOC:detections:Detections#Common_ransomware_notes|Common Ransomware Notes]] + +* [[Documentation:ESSOC:detections:Detections#Nltest_domain_trust_discovery|NLTest Domain Trust Discovery]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_bruteforce|Remote Desktop Network Bruteforce]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_traffic|Remote Desktop Network Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Ryuk_test_files_detected|Ryuk Test Files Detected]] + +* [[Documentation:ESSOC:detections:Detections#Spike_in_file_writes|Spike in File Writes]] + +* [[Documentation:ESSOC:detections:Detections#Wbadmin_delete_system_backups|WBAdmin Delete System Backups]] + +* [[Documentation:ESSOC:detections:Detections#Windows_disableantispyware_registry|Windows DisableAntiSpyware Registry]] + +* [[Documentation:ESSOC:detections:Detections#Windows_security_account_manager_stopped|Windows Security Account Manager Stopped]] + +* [[Documentation:ESSOC:detections:Detections#Windows_connhost_exe_started_forcefully|Windows connhost exe started forcefully]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1490 +| Inhibit System Recovery +| Impact +|- +| T1485 +| Data Destruction +| Impact +|- +| T1482 +| Domain Trust Discovery +| Discovery +|- +| T1048 +| Exfiltration Over Alternative Protocol +| Exfiltration +|- +| T1547.001 +| Registry Run Keys / Startup Folder +| Persistence, Privilege Escalation +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|- +| T1047 +| Windows Management Instrumentation +| Execution +|- +| T1486 +| Data Encrypted for Impact +| Impact +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1053.005 +| Scheduled Task +| Execution, Persistence, Privilege Escalation +|- +| T1070.001 +| Clear Windows Event Logs +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|- +| T1071.001 +| Web Protocols +| Command and Control +|- +| T1070 +| Indicator Removal on Host +| Defense Evasion +|- +| T1562.001 +| Disable or Modify Tools +| Defense Evasion +|- +| T1489 +| Service Stop +| Impact +|- +| T1059.003 +| Windows Command Shell +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Delivery + +* Exploitation + +* Reconnaissance + + +====Reference==== + +* https://www.splunk.com/en_us/blog/security/detecting-ryuk-using-splunk-attack-range.html + +* https://www.crowdstrike.com/blog/big-game-hunting-with-ryuk-another-lucrative-targeted-ransomware/ + +* https://us-cert.cisa.gov/ncas/alerts/aa20-302a + + +''version'': 1 +
+
+ +---- + +===Samsam ransomware=== +Leverage searches that allow you to detect and investigate unusual activities that might relate to the SamSam ransomware, including looking for file writes associated with SamSam, RDP brute force attacks, the presence of files with SamSam ransomware extensions, suspicious psexec use, and more. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint, Network_Traffic, Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1204.002/ T1204.002], [https://attack.mitre.org/techniques/T1485/ T1485], [https://attack.mitre.org/techniques/T1490/ T1490], [https://attack.mitre.org/techniques/T1021.002/ T1021.002], [https://attack.mitre.org/techniques/T1082/ T1082], [https://attack.mitre.org/techniques/T1021.001/ T1021.001], [https://attack.mitre.org/techniques/T1486/ T1486] +* '''Last Updated''': 2018-12-13 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Batch_file_write_to_system32|Batch File Write to System32]] + +* [[Documentation:ESSOC:detections:Detections#Common_ransomware_extensions|Common Ransomware Extensions]] + +* [[Documentation:ESSOC:detections:Detections#Common_ransomware_notes|Common Ransomware Notes]] + +* [[Documentation:ESSOC:detections:Detections#Deleting_shadow_copies|Deleting Shadow Copies]] + +* [[Documentation:ESSOC:detections:Detections#Detect_psexec_with_accepteula_flag|Detect PsExec With accepteula Flag]] + +* [[Documentation:ESSOC:detections:Detections#Detect_attackers_scanning_for_vulnerable_jboss_servers|Detect attackers scanning for vulnerable JBoss servers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_malicious_requests_to_exploit_jboss_servers|Detect malicious requests to exploit JBoss servers]] + +* [[Documentation:ESSOC:detections:Detections#File_with_samsam_extension|File with Samsam Extension]] + +* [[Documentation:ESSOC:detections:Detections#Prohibited_software_on_endpoint|Prohibited Software On Endpoint]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_bruteforce|Remote Desktop Network Bruteforce]] + +* [[Documentation:ESSOC:detections:Detections#Remote_desktop_network_traffic|Remote Desktop Network Traffic]] + +* [[Documentation:ESSOC:detections:Detections#Samsam_test_file_write|Samsam Test File Write]] + +* [[Documentation:ESSOC:detections:Detections#Spike_in_file_writes|Spike in File Writes]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1204.002 +| Malicious File +| Execution +|- +| T1485 +| Data Destruction +| Impact +|- +| T1490 +| Inhibit System Recovery +| Impact +|- +| T1021.002 +| SMB/Windows Admin Shares +| Lateral Movement +|- +| T1082 +| System Information Discovery +| Discovery +|- +| T1021.001 +| Remote Desktop Protocol +| Lateral Movement +|- +| T1486 +| Data Encrypted for Impact +| Impact +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Delivery + +* Installation + +* Reconnaissance + + +====Reference==== + +* https://www.crowdstrike.com/blog/an-in-depth-analysis-of-samsam-ransomware-and-boss-spider/ + +* https://nakedsecurity.sophos.com/2018/07/31/samsam-the-almost-6-million-ransomware/ + +* https://thehackernews.com/2018/07/samsam-ransomware-attacks.html + + +''version'': 1 +
+
+ +---- + +===Unusual processes=== +Quickly identify systems running new or unusual processes in your environment that could be indicators of suspicious activity. Processes run from unusual locations, those with conspicuously long command lines, and rare executables are all examples of activities that may warrant deeper investigation. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1016/ T1016], [https://attack.mitre.org/techniques/T1218.011/ T1218.011], [https://attack.mitre.org/techniques/T1036.003/ T1036.003], [https://attack.mitre.org/techniques/T1204.002/ T1204.002] +* '''Last Updated''': 2020-02-04 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_rare_executables|Detect Rare Executables]] + +* [[Documentation:ESSOC:detections:Detections#Detect_processes_used_for_system_network_configuration_discovery|Detect processes used for System Network Configuration Discovery]] + +* [[Documentation:ESSOC:detections:Detections#Rundll_loading_dll_by_ordinal|RunDLL Loading DLL By Ordinal]] + +* [[Documentation:ESSOC:detections:Detections#System_processes_run_from_unexpected_locations|System Processes Run From Unexpected Locations]] + +* [[Documentation:ESSOC:detections:Detections#Uncommon_processes_on_endpoint|Uncommon Processes On Endpoint]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line|Unusually Long Command Line]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_command_line_-_mltk|Unusually Long Command Line - MLTK]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1016 +| System Network Configuration Discovery +| Discovery +|- +| T1218.011 +| Rundll32 +| Defense Evasion +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|- +| T1204.002 +| Malicious File +| Execution +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Command and Control + +* Installation + + +====Reference==== + +* https://www.fireeye.com/blog/threat-research/2017/08/monitoring-windows-console-activity-part-two.html + +* https://www.splunk.com/pdfs/technical-briefs/advanced-threat-detection-and-response-tech-brief.pdf + +* https://www.sans.org/reading-room/whitepapers/logging/detecting-security-incidents-windows-workstation-event-logs-34262 + + +''version'': 2 +
+
+ +---- + +===Windows file extension and association abuse=== +Detect and investigate suspected abuse of file extensions and Windows file associations. Some of the malicious behaviors involved may include inserting spaces before file extensions or prepending the file extension with a different one, among other techniques. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1036.003/ T1036.003], [https://attack.mitre.org/techniques/T1546.001/ T1546.001] +* '''Last Updated''': 2018-01-26 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Execution_of_file_with_spaces_before_extension|Execution of File With Spaces Before Extension]] + +* [[Documentation:ESSOC:detections:Detections#Execution_of_file_with_multiple_extensions|Execution of File with Multiple Extensions]] + +* [[Documentation:ESSOC:detections:Detections#Suspicious_changes_to_file_associations|Suspicious Changes to File Associations]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1036.003 +| Rename System Utilities +| Defense Evasion +|- +| T1546.001 +| Change Default File Association +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + + +====Reference==== + +* https://blog.malwarebytes.com/cybercrime/2013/12/file-extensions-2/ + +* https://attack.mitre.org/wiki/Technique/T1042 + + +''version'': 1 +
+
+ +---- + +===Windows service abuse=== +Windows services are often used by attackers for persistence and the ability to load drivers or otherwise interact with the Windows kernel. This Analytic Story helps you monitor your environment for indications that Windows services are being modified or created in a suspicious manner. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1569.002/ T1569.002], [https://attack.mitre.org/techniques/T1059.001/ T1059.001], [https://attack.mitre.org/techniques/T1059.003/ T1059.003], [https://attack.mitre.org/techniques/T1574.011/ T1574.011], [https://attack.mitre.org/techniques/T1543.003/ T1543.003] +* '''Last Updated''': 2017-11-02 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#First_time_seen_running_windows_service|First Time Seen Running Windows Service]] + +* [[Documentation:ESSOC:detections:Detections#Reg_exe_manipulating_windows_services_registry_keys|Reg exe Manipulating Windows Services Registry Keys]] + +* [[Documentation:ESSOC:detections:Detections#Sc_exe_manipulating_windows_services|Sc exe Manipulating Windows Services]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1569.002 +| Service Execution +| Execution +|- +| T1059.001 +| PowerShell +| Execution +|- +| T1059.003 +| Windows Command Shell +| Execution +|- +| T1574.011 +| Services Registry Permissions Weakness +| Defense Evasion, Persistence, Privilege Escalation +|- +| T1543.003 +| Windows Service +| Persistence, Privilege Escalation +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Installation + + +====Reference==== + +* https://attack.mitre.org/wiki/Technique/T1050 + +* https://attack.mitre.org/wiki/Technique/T1031 + + +''version'': 3 +
+
+ +---- + + + +==Vulnerability== + + +===Apache struts vulnerability=== +Detect and investigate activities--such as unusually long `Content-Type` length, suspicious java classes and web servers executing suspicious processes--consistent with attempts to exploit Apache Struts vulnerabilities. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Endpoint +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1082/ T1082] +* '''Last Updated''': 2018-12-06 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Suspicious_java_classes|Suspicious Java Classes]] + +* [[Documentation:ESSOC:detections:Detections#Unusually_long_content-type_length|Unusually Long Content-Type Length]] + +* [[Documentation:ESSOC:detections:Detections#Web_servers_executing_suspicious_processes|Web Servers Executing Suspicious Processes]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1082 +| System Information Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Actions on Objectives + +* Delivery + +* Exploitation + + +====Reference==== + +* https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/v3.2/dev/rules/REQUEST-944-APPLICATION-ATTACK-JAVA.conf + + +''version'': 1 +
+
+ +---- + +===Jboss vulnerability=== +In March of 2016, adversaries were seen using JexBoss--an open-source utility used for testing and exploiting JBoss application servers. These searches help detect evidence of these attacks, such as network connections to external resources or web services spawning atypical child processes, among others. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Web +* '''ATT&CK''': [https://attack.mitre.org/techniques/T1082/ T1082] +* '''Last Updated''': 2017-09-14 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Detect_attackers_scanning_for_vulnerable_jboss_servers|Detect attackers scanning for vulnerable JBoss servers]] + +* [[Documentation:ESSOC:detections:Detections#Detect_malicious_requests_to_exploit_jboss_servers|Detect malicious requests to exploit JBoss servers]] + + + +====ATT&CK==== +{| +! style="text-align:left;"| ID +! Technique +! Tactic +|- +| T1082 +| System Information Discovery +| Discovery +|} + + +====Kill Chain Phase==== + +* Delivery + +* Reconnaissance + + +====Reference==== + +* http://www.deependresearch.org/2016/04/jboss-exploits-view-from-victim.html + + +''version'': 1 +
+
+ +---- + +===Spectre and meltdown vulnerabilities=== +Assess and mitigate your systems' vulnerability to Spectre and Meltdown exploitation with the searches in this Analytic Story. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': Vulnerabilities +* '''ATT&CK''': +* '''Last Updated''': 2018-01-08 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Spectre_and_meltdown_vulnerable_systems|Spectre and Meltdown Vulnerable Systems]] + + + + +====Kill Chain Phase==== + + +====Reference==== + +* https://meltdownattack.com/ + + +''version'': 1 +
+
+ +---- + +===Splunk enterprise vulnerability=== +Keeping your Splunk deployment up to date is critical and may help you reduce the risk of CVE-2016-4859, an open-redirection vulnerability within some older versions of Splunk Enterprise. The detection search will help ensure that users are being properly authenticated and not being redirected to malicious domains. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2017-09-19 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Open_redirect_in_splunk_web|Open Redirect in Splunk Web]] + + + + +====Kill Chain Phase==== + +* Delivery + + +====Reference==== + +* http://www.splunk.com/view/SP-CAAAPQ6#announce + +* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4859 + + +''version'': 1 +
+
+ +---- + +===Splunk enterprise vulnerability cve-2018-11409=== +Reduce the risk of CVE-2018-11409, an information disclosure vulnerability within some older versions of Splunk Enterprise, with searches designed to help ensure that your Splunk system does not leak information to authenticated users. + +* '''Product''': Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud +* '''Datamodel''': +* '''ATT&CK''': +* '''Last Updated''': 2018-06-14 + +
+
+ +====Detection Profile==== + +* [[Documentation:ESSOC:detections:Detections#Splunk_enterprise_information_disclosure|Splunk Enterprise Information Disclosure]] + + + + +====Kill Chain Phase==== + +* Delivery + + +====Reference==== + +* https://nvd.nist.gov/vuln/detail/CVE-2018-11409 + +* https://www.splunk.com/view/SP-CAAAP5E#VulnerabilityDescriptionsandRatings + +* https://www.exploit-db.com/exploits/44865/ + + +''version'': 1 +
+
+ +---- + + + + +''#############'' +''# Automatically generated by doc_gen.py in https://github.com/splunk/security_content'' +''# On Date: UTC'' +''# Author: Splunk Security Research'' +''# Contact: research@splunk.com'' +''#############'' + +[[Category:V:ESSOC:drafts]] \ No newline at end of file diff --git a/lookups/ransomware_extensions.csv b/lookups/ransomware_extensions.csv index 0f003c3d8f..9e8fe7eff6 100644 --- a/lookups/ransomware_extensions.csv +++ b/lookups/ransomware_extensions.csv @@ -285,4 +285,6 @@ Extensions,Name .wnry,WannaCry .wncryt,WannaCry .WNCRYT,WannaCry -.RYK,Ryuk \ No newline at end of file +.RYK,Ryuk +.Clop,Clop +.Cllp,Clop \ No newline at end of file diff --git a/lookups/ransomware_notes.csv b/lookups/ransomware_notes.csv index ead875e6e9..ecdfd2479d 100644 --- a/lookups/ransomware_notes.csv +++ b/lookups/ransomware_notes.csv @@ -57,3 +57,5 @@ HELP_DECRYPT_YOUR_FILES.HTML,True *-SORRY-FOR-FILES.html,True *-READ-FOR-HELLPP.html,True RyukReadMe.html,True +ClopReadMe.txt,True +README_README.txt,True \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 079835fa4c..d3f1f5a28e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,36 +3,55 @@ appdirs==1.4.4 aspy.yaml==1.3.0 attackcti==0.3.4.3 attrs==20.3.0 +CacheControl==0.12.6 certifi==2020.12.5 cfgv==3.2.0 chardet==4.0.0 +colorama==0.4.3 coloredlogs==14.0 configparser==5.0.2 contextlib2==0.6.0.post1 distlib==0.3.1 +distro==1.4.0 filelock==3.0.12 +fire==0.3.1 gitdb==4.0.5 +html5lib==1.0.1 humanfriendly==9.1 identify==2.1.3 idna==2.10 importlib-metadata==3.7.3 importlib-resources==5.1.2 +ipaddr==2.2.0 Jinja2==2.11.3 jsonschema==3.2.0 +lockfile==0.12.2 MarkupSafe==1.1.1 more-itertools==8.7.0 +msgpack==0.6.2 nodeenv==1.5.0 +packaging==20.3 pathlib2==2.3.5 +pendulum==1.2.5 +pep517==0.8.2 +Pillow==8.1.2 +progress==1.5 +pyattck==2.1.3 +pyfiglet==0.8.post1 +pyparsing==2.4.6 pre-commit==2.11.1 prompt-toolkit==1.0.14 Pygments==2.8.1 PyInquirer==1.0.3 pyrsistent==0.17.3 python-dateutil==2.8.1 +pytoml==0.1.21 pytz==2021.1 +pytzdata==2020.1 PyYAML==5.4.1 regex==2021.3.17 requests==2.25.1 +retrying==1.3.3 scandir==1.10.0 semantic-version==2.8.5 simplejson==3.17.2 @@ -42,9 +61,12 @@ smmap==3.0.5 stix2==2.1.0 stix2-patterns==1.2.1 taxii2-client==2.3.0 -toml==0.10.2 +termcolor==1.1.0 typing==3.7.4.3 +tzlocal==2.1 urllib3==1.26.4 virtualenv==20.4.3 wcwidth==0.2.5 +webencodings==0.5.1 +toml==0.10.2 zipp==3.4.1 diff --git a/stories/ransomware_clop.yml b/stories/ransomware_clop.yml new file mode 100644 index 0000000000..8177d02ac9 --- /dev/null +++ b/stories/ransomware_clop.yml @@ -0,0 +1,26 @@ +name: Clop Ransomware +id: 5a6f6849-1a26-4fae-aa05-fa730556eeb6 +version: 1 +date: '2021-03-17' +author: Rod Soto, Teoderick Contreras, Splunk +type: batch +description: Leverage searches that allow you to detect and investigate unusual activities + that might relate to the Clop ransomware, including looking for file writes associated + with Clope, encrypting network shares, deleting and resizing shadow volume storage, registry key modification, + deleting of security logs, and more. +narrative: Clop ransomware campaigns targeting healthcare and other vertical sectors, involve the use of + ransomware payloads along with exfiltration of data per HHS bulletin. Malicious actors demand payment for + ransome of data and threaten deletion and exposure of exfiltrated data. +references: +- https://www.hhs.gov/sites/default/files/analyst-note-cl0p-tlp-white.pdf +- https://securityaffairs.co/wordpress/115250/data-breach/qualys-clop-ransomware.html +- https://www.darkreading.com/attacks-breaches/qualys-is-the-latest-victim-of-accellion-data-breach/d/d-id/1340323 +tags: + analytic_story: Clop Ransomware + category: + - Malware + product: + - Splunk Enterprise + - Splunk Enterprise Security + - Splunk Cloud + usecase: Advanced Threat Detection diff --git a/tests/endpoint/clop_common_exec_parameter.test.yml b/tests/endpoint/clop_common_exec_parameter.test.yml new file mode 100644 index 0000000000..23bc2d1ec6 --- /dev/null +++ b/tests/endpoint/clop_common_exec_parameter.test.yml @@ -0,0 +1,12 @@ +name: Clop Common Exec Parameter Unit Test +tests: +- name: Clop Common Exec Parameter + file: endpoint/clop_common_exec_parameter.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/malware/clop/clop_b/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/clop_ransomware_known_service_name.test.yml b/tests/endpoint/clop_ransomware_known_service_name.test.yml new file mode 100644 index 0000000000..31e11ab66b --- /dev/null +++ b/tests/endpoint/clop_ransomware_known_service_name.test.yml @@ -0,0 +1,12 @@ +name: Clop Ransomware Known Service Name Unit Test +tests: +- name: Clop Ransomware Known Service Name + file: endpoint/clop_ransomware_known_service_name.yml + pass_condition: '| stats count | where count > 0' + earliest_time: '-24h' + latest_time: 'now' + attack_data: + - file_name: windows-system.log + data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-system.log + source: WinEventLog:System + sourcetype: WinEventLog \ No newline at end of file diff --git a/tests/endpoint/create_service_in_suspicious_file_path.test.yml b/tests/endpoint/create_service_in_suspicious_file_path.test.yml new file mode 100644 index 0000000000..eba6df52b3 --- /dev/null +++ b/tests/endpoint/create_service_in_suspicious_file_path.test.yml @@ -0,0 +1,12 @@ +name: Create Service In Suspicious File Path Unit Test +tests: +- name: Create Service In Suspicious File Path + file: endpoint/create_service_in_suspicious_file_path.yml + pass_condition: '| stats count | where count > 0' + earliest_time: '-24h' + latest_time: 'now' + attack_data: + - file_name: windows-system.log + data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/clop/clop_a/windows-system.log + source: WinEventLog:System + sourcetype: WinEventLog \ No newline at end of file diff --git a/tests/endpoint/high_file_deletion_frequency.test.yml b/tests/endpoint/high_file_deletion_frequency.test.yml new file mode 100644 index 0000000000..0e569e5830 --- /dev/null +++ b/tests/endpoint/high_file_deletion_frequency.test.yml @@ -0,0 +1,12 @@ +name: High File Deletion Frequency Unit Test +tests: +- name: High File Deletion Frequency + file: endpoint/high_file_deletion_frequency.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/malware/clop/clop_a/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/high_process_termination_frequency.test.yml b/tests/endpoint/high_process_termination_frequency.test.yml new file mode 100644 index 0000000000..8e9e14a92a --- /dev/null +++ b/tests/endpoint/high_process_termination_frequency.test.yml @@ -0,0 +1,12 @@ +name: High Process Termination Frequency Unit Test +tests: +- name: High Process Termination Frequency + file: endpoint/high_process_termination_frequency.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/malware/clop/clop_a/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/process_deleting_its_process_file_path.test.yml b/tests/endpoint/process_deleting_its_process_file_path.test.yml new file mode 100644 index 0000000000..52c2694147 --- /dev/null +++ b/tests/endpoint/process_deleting_its_process_file_path.test.yml @@ -0,0 +1,12 @@ +name: Process Deleting Its Process File Path Unit Test +tests: +- name: Process Deleting Its Process File Path + file: endpoint/process_deleting_its_process_file_path.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/malware/clop/clop_a/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/ransomware_notes_bulk_creation.test.yml b/tests/endpoint/ransomware_notes_bulk_creation.test.yml new file mode 100644 index 0000000000..6be797d3fd --- /dev/null +++ b/tests/endpoint/ransomware_notes_bulk_creation.test.yml @@ -0,0 +1,12 @@ +name: Ransomware Notes bulk creation Unit Test +tests: +- name: Ransomware Notes bulk creation + file: endpoint/ransomware_notes_bulk_creation.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/malware/clop/clop_a/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/resize_shadowstorage_volume.test.yml b/tests/endpoint/resize_shadowstorage_volume.test.yml new file mode 100644 index 0000000000..d2460b16a0 --- /dev/null +++ b/tests/endpoint/resize_shadowstorage_volume.test.yml @@ -0,0 +1,12 @@ +name: Resize ShadowStorage volume Unit Test +tests: +- name: Resize ShadowStorage volume + file: endpoint/resize_shadowstorage_volume.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/malware/clop/clop_a/windows-sysmon.log + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational + sourcetype: xmlwineventlog \ No newline at end of file diff --git a/tests/endpoint/ssa___rare_parent_process_relationship_lolbas.test.yaml b/tests/endpoint/ssa___rare_parent_process_relationship_lolbas.test.yaml index a44cdc41f0..7cc3da7342 100644 --- a/tests/endpoint/ssa___rare_parent_process_relationship_lolbas.test.yaml +++ b/tests/endpoint/ssa___rare_parent_process_relationship_lolbas.test.yaml @@ -2,7 +2,7 @@ name: Rare Parent/Child Process Relationship - SSA Unit Test tests: - name: Access LSASS Memory for Dump Creation file: endpoint/ssa___rare_parent_process_relationship_lolbas.yml - pass_condition: '@count_gt(0)' + pass_condition: '@count_eq(0)' description: Test detection looking for LOLBAS processes spawned by other processes that are rarely seen together attack_data: - file_name: T1059.all.labeled.lolbas-test.json