If you have a SIEM, maybe ArcSight, you can have BanHammer suggest you via email which IP you should block.
What you need to do is to run commands like ./manage.py new_event --attackerAddress=
to feed BanHammer with your data.
To use this feature, you need to load the external rules provided by Emerging Threats and Dshield ./manage.py update_third_party_rules
The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
Update third party rules for scoring: $ python manage.py update_third_party_rules
Clean expired blacklists from ZLBs: $ python manage clean_blacklists
Update data from ZLBs: $ python manage update_zlbs
Decrease score of offenders as time passes (e.g. set up a cron task to execute every hour) $ python manage decrease_scores
Run the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.py
License
This software is licensed under the New BSD License. For more
information, read the file LICENSE.
${attackerAddress}to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`
The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
Update third party rules for scoring: $ python manage.py update_third_party_rules
Clean expired blacklists from ZLBs: $ python manage clean_blacklists
Update data from ZLBs: $ python manage update_zlbs
Decrease score of offenders as time passes (e.g. set up a cron task to execute every hour) $ python manage decrease_scores
Run the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.py
License
This software is licensed under the New BSD License. For more
information, read the file LICENSE.
–eventId=${eventId} –severity=7 –rulename=to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`
The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
Update third party rules for scoring: $ python manage.py update_third_party_rules
Clean expired blacklists from ZLBs: $ python manage clean_blacklists
Update data from ZLBs: $ python manage update_zlbs
Decrease score of offenders as time passes (e.g. set up a cron task to execute every hour) $ python manage decrease_scores
Run the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.py
License
This software is licensed under the New BSD License. For more
information, read the file LICENSE.
Marketplace CSP Violationto feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`
The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
Update third party rules for scoring: $ python manage.py update_third_party_rules
Clean expired blacklists from ZLBs: $ python manage clean_blacklists
Update data from ZLBs: $ python manage update_zlbs
Decrease score of offenders as time passes (e.g. set up a cron task to execute every hour) $ python manage decrease_scores
Run the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.py
License
This software is licensed under the New BSD License. For more
information, read the file LICENSE.
to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`
The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
Update third party rules for scoring: $ python manage.py update_third_party_rules
Clean expired blacklists from ZLBs: $ python manage clean_blacklists
Update data from ZLBs: $ python manage update_zlbs
Decrease score of offenders as time passes (e.g. set up a cron task to execute every hour) $ python manage decrease_scores
Run the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.py
License
This software is licensed under the New BSD License. For more
information, read the file LICENSE.
BanHammer-ng
BanHammer-ng is a system to push rules to border routers (using BGP) and Zeus Load Balancers to block IPs/network using a web interface.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8C8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@CCCOO:cCOCoO@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@CoCCCc:ooooOOCCO88OC8@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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C::cc.::c:cooocccccccccccocccocc:::oCOO88@@@@@@ @@@@@@@@@@@@@@@@@@@@@OcOOOOO:ccc:..::coCCCCCC:OcCCCO88OOCCo:CCCocCCOOOOCCoooCoCooooc.ccc::::oO8CccOCcOcoco::::..::ccooccccooocccc::::::::ccco8@@@@@@@@ @@@@@@@@@@@@@@@@@@@@o8OCOCo.coooccccco:.:oOCoCcooCCCoCoCCoocCCo:8OOOOoCCCOCCooc:…:……::..oO8@8o:ococccc::ccccc.::cocoooocooc:::cc::cc:o@@@@@@@@@@ @@@@@@@@@@@@@@@@@@oOOCoocc:::::cccccccccc:
ocoooCooooooooOCC.cOooooCc..:::::::::::::…..::::CCOoc:::ccc:.:C@C@@@@8c:::::cccc:c::c:::c:cO@@@@@@@@@@@
@@@@@@@@@@@@@@@8o8OCoooo.cCOc::cc:.:::c:c:c::ccocooooooooo:88O:ccoooccc…:::::::::…… :c::oCoOc@O..:c:cO@@@@@@@@@@@o::::::::::::c::cO8@@@@@@@@@@@@
@@@@@@@@@@@@@@@@oOoc::O:oooooCo::ccc:::coo..:::ccccooococccCo:.ccccccc……..::……… :c:.CCCoOCCCOoc8@@@@@@@@@@@@@@@oc::::::cccccC8@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@o::::o.cc:::::.::::::::::.:.:::::c::cc::coc:.:::::::………….C8OCoo.c::.CoO:oooCooCC@@@@@@@@@@@@@@@@@Oc:co@@@@8@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@:::::::::::::::::::::::.:…….::::..:o….:.::…………..::.cCoooc…:8c..:ooooC8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@O::::::::cc:……..c:::………… .::.:…………..coooo.:::..:oooooc:…::.:c8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@8:::::c…:::::.:::c::::……….. ….:……………CoCCCo..::..:ooooooocc:coCO@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@:::..c::.::::::cc::::::……:………occc:…………ooCoCc..::..:oooCCo:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@::..:::ccccccccccc::.:..:::::::……c::cccc…..:……:cCoCC:..:::.cCoCCo@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@c…:.::::…….::.::.:::::::::::…..::cc…c:ooc:…:.:oCoCo..:::..c@C8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@:………::::::.::.:.:::::...o8O@Cc::::::.:…..coo:..:..CooCcoC:.:oCO8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@:……::::::::.::..:c:.:C@@@@@@@@@@COOO8O
.::..oCo:….:8Oc@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@o….::::::::.::::oO@@@@@@@@@@@@@@@@@@@OoCCooo:::..:Coc:..:::o@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@C….::::::::oO@@@@@@@@@@@@@@@@@@@CO8ocCococooc…::.cOo@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@c:…::cO@@@@@@@@@@@@@@@@@@@@@@@@@@oCooc::ccccc
:::.c@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@OCCooCO@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Installation
BanHammer/blacklist/fixtures/initial_data.json.origtoBanHammer/blacklist/fixtures/initial_datapython manage.py celerydScoring and notification script (optional)
If you have a SIEM, maybe ArcSight, you can have BanHammer suggest you via email which IP you should block. What you need to do is to run commands like
./manage.py new_event --attackerAddress=to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rulesThe settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
$ python manage.py update_third_party_rules$ python manage clean_blacklists$ python manage update_zlbs$ python manage decrease_scoresRun the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.pyLicense
This software is licensed under the New BSD License. For more information, read the file
LICENSE.${attackerAddress}
to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
$ python manage.py update_third_party_rules$ python manage clean_blacklists$ python manage update_zlbs$ python manage decrease_scoresRun the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.pyLicense
This software is licensed under the New BSD License. For more information, read the file
LICENSE.–eventId=${eventId} –severity=7 –rulename=
to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
$ python manage.py update_third_party_rules$ python manage clean_blacklists$ python manage update_zlbs$ python manage decrease_scoresRun the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.pyLicense
This software is licensed under the New BSD License. For more information, read the file
LICENSE.Marketplace CSP Violation
to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
$ python manage.py update_third_party_rules$ python manage clean_blacklists$ python manage update_zlbs$ python manage decrease_scoresRun the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.pyLicense
This software is licensed under the New BSD License. For more information, read the file
LICENSE.to feed BanHammer with your data. To use this feature, you need to load the external rules provided by Emerging Threats and Dshield./manage.py update_third_party_rules`The settings for the score and notifications are in the blacklist_config table.
Maintenance tasks
$ python manage.py update_third_party_rules$ python manage clean_blacklists$ python manage update_zlbs$ python manage decrease_scoresRun the tests
$ python manage.py test BanHammer/blacklist/tests/tests_*.pyLicense
This software is licensed under the New BSD License. For more information, read the file
LICENSE.