You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, a generated stix2 observed data is not compatible w/ the pattern matcher code. See the attached file. t.txt
When run, it raises:
$ python t.py
Traceback (most recent call last):
File "/Users/jmg/work/python-indicator/t.py", line 8, in <module>
print(repr(stix2matcher.matcher.match("[ artifact:payload = 'pass' ]", [ od ])))
File "/Users/jmg/work/python-indicator/p/lib/python3.9/site-packages/stix2matcher/matcher.py", line 2349, in match
return compiled_pattern.match(observed_data_sdos, verbose)
File "/Users/jmg/work/python-indicator/p/lib/python3.9/site-packages/stix2matcher/matcher.py", line 2322, in match
matcher = MatchListener(observed_data_sdos, verbose)
File "/Users/jmg/work/python-indicator/p/lib/python3.9/site-packages/stix2matcher/matcher.py", line 1008, in __init__
self.__time_intervals.append((_str_to_datetime(sdo["first_observed"]),
File "/Users/jmg/work/python-indicator/p/lib/python3.9/site-packages/stix2matcher/matcher.py", line 474, in _str_to_datetime
if not ignore_case and any(c.islower() for c in timestamp_str):
TypeError: 'STIXdatetime' object is not iterable
The text was updated successfully, but these errors were encountered:
So, a generated stix2 observed data is not compatible w/ the pattern matcher code. See the attached file.
t.txt
When run, it raises:
The text was updated successfully, but these errors were encountered: