Skip to content

Commit b3c577b

Browse files
committed
gis-8502 fix
1 parent f80fb43 commit b3c577b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uncoder-core/app/translator/platforms/elasticsearch/parsers/detection_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def parse_raw_query(self, text: str, language: str) -> RawQueryContainer:
6666
metadata = raw_rule.get("metadata")
6767
techniques = []
6868
for threat_data in rule.get("threat", []):
69-
if len(threat_data.get("technique", [])) > 0:
69+
if threat_data.get("technique"):
7070
techniques.append(threat_data["technique"][0]["id"].lower())
7171
mitre_attack = self.mitre_config.get_mitre_info(
7272
tactics=[threat_data["tactic"]["name"].replace(" ", "_").lower() for threat_data in rule.get("threat", [])],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy