Skip to content

Commit 5818932

Browse files
committed
fix
1 parent 16138fe commit 5818932

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

uncoder-core/app/translator/core/parser_cti.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ def get_iocs_from_string(
5353
) -> dict:
5454
iocs = Iocs()
5555
if not include_ioc_types or "ip" in include_ioc_types:
56-
iocs.ip.extend(self._find_all_str_by_regex(string, IP_IOC_REGEXP_PATTERN))
56+
for ip in self._find_all_str_by_regex(string, IP_IOC_REGEXP_PATTERN):
57+
iocs.ip.append(self.replace_dots_hxxp(ip))
5758
if not include_ioc_types or "domain" in include_ioc_types:
5859
for domain in self._find_all_str_by_regex(string, DOMAIN_IOC_REGEXP_PATTERN):
5960
for domain_val in domain:
6061
if domain_val:
61-
iocs.domain.extend(self.replace_dots_hxxp(domain_val))
62+
iocs.domain.append(self.replace_dots_hxxp(domain_val))
6263
if not include_ioc_types or "url" in include_ioc_types:
6364
iocs.url.extend(
6465
[

0 commit comments

Comments
 (0)