Skip to content

Commit

Permalink
ENH: modify handle sality-p2p
Browse files Browse the repository at this point in the history
fixes #742

Signed-off-by: Sebastian Wagner <sebix@sebix.at>
  • Loading branch information
sebix committed Oct 17, 2016
1 parent 064f71f commit 7d1408b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion intelmq/bots/experts/modify/examples/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"classification.identifier": "citadel"
}],
"sality": [{
"malware.name": "^[Ss]ality(_p2p)?$"
"malware.name": "^[Ss]ality([_-]p2p)?$"
}, {
"classification.identifier": "sality"
}]
Expand Down
2 changes: 1 addition & 1 deletion intelmq/bots/experts/modify/examples/morefeeds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"classification.identifier": "Citadel"
}],
"sality": [{
"malware.name": "^[Ss]ality(_p2p)?(v)?[0-9]?$"
"malware.name": "^[Ss]ality([_-]p2p)?(v)?[0-9]?$"
}, {
"classification.identifier": "Sality"
}],
Expand Down
2 changes: 2 additions & 0 deletions intelmq/tests/bots/experts/modify/test_expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
{'feed.name': 'Abuse.ch',
'feed.url': 'https://feodotracker.abuse.ch/blocklist/?download=domainblocklist'},
{'malware.name': 'zeus_gameover_us'},
{'malware.name': 'sality-p2p'},
{'malware.name': 'foobar', 'feed.name': 'Other Feed'},
{'source.port': 80, 'malware.name': 'zeus'},
]
OUTPUT = [{'classification.identifier': 'conficker'},
{'classification.identifier': 'gozi'},
{'classification.identifier': 'feodo'},
{'classification.identifier': 'zeus'},
{'classification.identifier': 'sality'},
{},
{'protocol.application': 'http', 'classification.identifier': 'zeus'},
]
Expand Down

0 comments on commit 7d1408b

Please sign in to comment.