unfetter-discover / unfetter-analytic

Main Build directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CAR_2013_04_002 error

infosec-alchemist opened this issue · comments

This analytic caused an error:
File "/usr/share/unfetter/src/CAR_2013_04_002.py", line 129, in group_suspicous_processes
item[1]['utc_datetime'] = datetime.strptime(item[1]['utc_time'], "%Y-%m-%d %H:%M:%S.%f")
time data '2016-12-08T07:42:04Z' does not match format '%Y-%m-%d %H:%M:%S.%f'

@infosec-alchemist could the filter be like this? '%Y-%m-%dT%H:%M:%SZ'
It's kinda hacky, but works.
It appears this time data complies to RFC 3339. There's an open issue on Python about that.

You can also use dateutil.parser

Just for the record, the line you are talking about is located here

Oh thanks. I'll give that a shot