Today something seems to be strange within the phishtank feed causing a KeyError:
Logs:
Feb 09 10:25:16 localhorstt csirtg-smrt[14590]: 2017-02-09 10:25:16,920 - INFO - csirtg_smrt.archiver[115] - Cached provider phishtank.com in memory, 0 objects
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: Process Process-1:
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: Traceback (most recent call last):
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: self.run()
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: self._target(*self._args, **self._kwargs)
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: File "/etc/cif/cif-venv/local/lib/python2.7/site-packages/csirtg_smrt/smrt.py", line 252, in _run_smrt
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: for i in s.process(r, f, limit=args.limit, data=data, filters=filters):
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: File "/etc/cif/cif-venv/local/lib/python2.7/site-packages/csirtg_smrt/smrt.py", line 222, in process
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: yield list(i.format_keys())[0]
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: File "build/bdist.linux-x86_64/egg/csirtg_indicator/indicator.py", line 119, in format_keys
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: d[k] = d[k].format(**d)
Feb 09 10:27:20 localhorstt csirtg-smrt[14590]: KeyError: u'dong'
Feb 09 11:24:36 localhorstt csirtg-smrt[14590]: 2017-02-09 11:24:36,248 - INFO - csirtg_smrt.archiver[105] - Caching archived indicators for provider dataplane.org
Annoying: SMRT stops consuming other feed provider and wait until next run stoping at with the same error.
File:
-rw-r--r-- 1 cif cif 3834649 Feb 9 12:00 online-valid.json.gz
we added some functionality where you can do things like {var} and suck that {var} in from another key somewhere in the config.. didn't think about literal {}'s in the url :)
Today something seems to be strange within the phishtank feed causing a KeyError: Logs:
Annoying: SMRT stops consuming other feed provider and wait until next run stoping at with the same error.
File:
-rw-r--r-- 1 cif cif 3834649 Feb 9 12:00 online-valid.json.gz
Content containing 'dong':
Might this line cause the error?
"url" : "http://refreshdharan.com/bg/excel2/index.php?userid={dong.keonkwonfinancialconsultd@yahoo.com}",