Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CleanMX Phishing Parser (new fields and ignore undef values) #1131

Merged
1 commit merged into from
Dec 11, 2017

Conversation

SYNchroACK
Copy link
Contributor

New fields (first and last):

"line","id","first","firsttime","last","lasttime","phishtank","virusname","url","recent","response","ip","review","domain","country","source","email","inetnum","netname","ddescr","ns1","ns2","ns3","ns4","ns5"

"1","11089007","1501073583","2017-07-26 14:53:03","0","1970-01-01 01:00:00", "5118751","Google","http://....com/js/Desk/9f3885a038f82d43730038c8d9043a43/","up","alive","195.191.24.116","195.191.24.116","hydropneuengg[.]com","IT","RIPE","[email protected]","195.191.24.0 - 195.191.25.255","HOSTPRO-NET3","Hostpro Ltd.Hostpro Ltd.","ns2.fastnext.com","ns1.fastnext.com","","",""

Ignore undef values:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py", line 659, in process
    events = list(filter(bool, value))
  File "/usr/local/lib/python3.5/dist-packages/intelmq/bots/parsers/cleanmx/parser.py", line 123, in parse_line
    event.add(key, value)
  File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/message.py", line 223, in add
    raise exceptions.InvalidValue(key, old_value)
intelmq.lib.exceptions.InvalidValue: invalid value 'undef' (<class 'str'>) for key 'source.ip'

@SYNchroACK SYNchroACK added bug Indicates an unexpected problem or unintended behavior component: bots labels Dec 11, 2017
@ghost ghost changed the base branch from master to maintenance December 11, 2017 15:18
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ghost ghost merged commit 2fe3827 into certtools:maintenance Dec 11, 2017
ghost pushed a commit that referenced this pull request Dec 11, 2017
ghost pushed a commit that referenced this pull request Dec 11, 2017
@SYNchroACK SYNchroACK deleted the cleanmx-parser-fix branch August 30, 2018 22:55
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant