From 28d8c7a0189bee3a5ad26d6c584e17b06a4f8d9c Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Mon, 16 Jan 2017 16:10:46 +0000 Subject: [PATCH] fix: Removed duplicate checking - sometimes it just wouldn't upload --- misp_taxii_hooks/hooks.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/misp_taxii_hooks/hooks.py b/misp_taxii_hooks/hooks.py index 259daa3..1da872b 100644 --- a/misp_taxii_hooks/hooks.py +++ b/misp_taxii_hooks/hooks.py @@ -51,16 +51,6 @@ def post_stix(manager, content_block, collection_ids, service_id): # Load the package package = pymisp.tools.stix.load_stix(content_block.content) - # Check for duplicates - for attrib in package.attributes: - try: - if (0 != len(MISP.search_index(attrib.value)["response"])): - # It's a dupe! - package.attributes.remove(attrib) - except: - # idk, this is just in case pymisp does a weird - pass - # Push the event to MISP # TODO: There's probably a proper method to do this rather than json_full # But I don't wanna read docs