diff --git a/src/python/strelka/auxiliary/iocs.py b/src/python/strelka/auxiliary/iocs.py index 7446e75e..a09a7d1c 100644 --- a/src/python/strelka/auxiliary/iocs.py +++ b/src/python/strelka/auxiliary/iocs.py @@ -3,6 +3,7 @@ import tldextract + def extract_iocs_from_string(input_string): """ Extracts various types of Indicators of Compromise (IOCs) from a string. @@ -17,6 +18,7 @@ def extract_iocs_from_string(input_string): iocs.update(extract_ip_addresses(input_string)) return list(iocs) + def extract_domains_from_string(input_string): """ Extracts domain names from a string containing URLs. @@ -68,4 +70,4 @@ def extract_ip_addresses(input_string): ip_addresses.update(ipv4_addresses) ip_addresses.update(ipv6_addresses) - return list(ip_addresses) \ No newline at end of file + return list(ip_addresses) diff --git a/src/python/strelka/scanners/scan_xml.py b/src/python/strelka/scanners/scan_xml.py index 7765ca20..f8e6688d 100644 --- a/src/python/strelka/scanners/scan_xml.py +++ b/src/python/strelka/scanners/scan_xml.py @@ -145,4 +145,4 @@ def _process_attributes( if attr_name_lower in xml_options["metadata_tags"]: self.event["tag_data"].append( {"tag": attr_name, "content": str(node.attrib)} - ) \ No newline at end of file + ) diff --git a/src/python/strelka/tests/test_scan_xml.py b/src/python/strelka/tests/test_scan_xml.py index 5f4d4373..6b4d9e83 100644 --- a/src/python/strelka/tests/test_scan_xml.py +++ b/src/python/strelka/tests/test_scan_xml.py @@ -154,4 +154,4 @@ def test_scan_xml_with_file(mocker): ) TestCase.maxDiff = None - TestCase().assertDictEqual(test_scan_event, scanner_event) \ No newline at end of file + TestCase().assertDictEqual(test_scan_event, scanner_event)